-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautosave.sh
More file actions
36 lines (24 loc) · 749 Bytes
/
autosave.sh
File metadata and controls
36 lines (24 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
# EVADE Security Autosave script ('Saving any edits to a flash drive with the OS without saving data on the PC only uses RAM, the processor, and if for 3D graphics, the video card')
ROOT_DEV=$(mount | grep 'on / ' | awk '{print $1}')
PERSISTENT=$(lsblk -no MOUNTPOINT $ROOT_DEV)/tce
mkdir -p "$PERSISTENT"
export TCE_DIR="$PERSISTENT"
echo "Starting data restore from $PERSISTENT..."
filetool.sh -r
echo "Initializing .filetool.lst with common user directories..."
cat << EOF > /opt/.filetool.lst
home
opt/
etc/hosts
etc/shadow
etc/passwd
etc/group
etc/fstab
# Add directories of your Unix-like OS to backup
EOF
while true; do
filetool.sh -b
echo "$(date +'%Y-%m-%d %H:%M:%S') - Backup complete s."
sleep 30
done &