klt Emitt meg működni látszik.
Ez nekem nem a legszerencsésebb témám, az már biztos!
Gondoltam, lepróbálunk néhány dolgot, aztán ennyi, de pont nem úgy lett se a systemback.sh-val, se a Timeshifttel, ahogy számoltam, inkább fordítva.
Mivel jóval nagyobb projekt lett ez, most megpróbáltam átköltözni a „nagygépre” és egy 100 GB-os lemezt odaadni a virtuális gépeknek, hogy legyen hová rendszert, fényképeket, parancskimeneteket menteni.
Feldobtam egy Ubuntu 24.04.3-at.
Valamit már a systemback.sh-nál is benézek, mert nem úgy sikerül a mentés, ahogy szeretném.
Nem kerül bele a mentésbe a /home/teszt/snap
teszt@ubuntu2404:~/Save/Ubuntu2404/SB_7KquNhRkZmcXDuldQEXM/home/teszt$ ls -la
összesen 48
drwxr-x--- 7 teszt teszt 4096 aug 23 07:38 .
drwxr-xr-x 3 root root 4096 aug 23 07:32 ..
-rw------- 1 teszt teszt 554 aug 23 09:15 .bash_history
-rw-r--r-- 1 teszt teszt 220 márc 31 2024 .bash_logout
-rw-r--r-- 1 teszt teszt 3771 márc 31 2024 .bashrc
drwx------ 12 teszt teszt 4096 aug 23 07:35 .cache
drwx------ 13 teszt teszt 4096 aug 23 07:37 .config
drwx------ 2 teszt teszt 4096 aug 23 09:15 .gnupg
drwx------ 4 teszt teszt 4096 aug 23 07:32 .local
-rw-r--r-- 1 teszt teszt 807 márc 31 2024 .profile
drwx------ 2 teszt teszt 4096 aug 23 07:32 .ssh
-rw-r--r-- 1 teszt teszt 0 aug 23 07:37 .sudo_as_admin_successful
-rw-rw-r-- 1 teszt teszt 196 aug 23 07:38 .wget-hsts
teszt@ubuntu2404:~/Save/Ubuntu2404/SB_7KquNhRkZmcXDuldQEXM/home/teszt$
Pedig van olyan és tartalommal is bír.
teszt@ubuntu2404:~/snap$ pwd
/home/teszt/snap
teszt@ubuntu2404:~/snap$ ls -la
\összesen 16
drwx------ 4 teszt teszt 4096 aug 23 07:37 .
drwxr-x--- 17 teszt teszt 4096 aug 23 07:38 ..
drwxr-xr-x 4 teszt teszt 4096 aug 23 07:37 firefox
drwxr-xr-x 4 teszt teszt 4096 aug 23 07:32 snapd-desktop-integration
teszt@ubuntu2404:~/snap$
Sajnos, nem látom, mit csinálok rosszul.
cat /usr/local/bin/systemback.sh
...
# Configuration settings
# Storage directory for created restore points.
# If the value is empty then the current directory (see 'pwd' command) will be
# used.
# The default value is empty.
storage_dir="/home/teszt/Save/Ubuntu2404"
# User-definable additional storage slots.
# If enabled, the default slot 0 can be overwritten by the SBSLOT environment
# variable. The maximum width of the SBSLOT is 16 characters.
# Possible values are 'on' or 'off'.
# The default value is off.
definable_slots=off
# Maximum number of the temporary restore points in a storage slot.
# The oldest temporary restore points will be automatically removed when the new
# ones are created.
# Possible values are between 1 and 99, but greater than 20 is not recommended.
# The default value is 5.
max_rp_num=3
# File size limit in MiB. Affects only to the files in the user's home
# directories.
# If the file in the user's home directory is greater than this value, then the
# restore point will not include it.
# Possible values are between 0 and 1024. 0 means that there is no size limit.
# The default value is 8, which means 8 MiB.
max_size=0
# These items will be excluded from the restore points. Affects only to the
# files and dirs in the user's home directories.
# Each lines must begin with a dot, because the restore points do not include
# any other items.
# The default items are .cache/gvfs
# .gvfs
# .local/share/Trash/files/*
# .local/share/Trash/info/*
# .Xauthority
# .ICEauthority
exclude="\
.cache/gvfs
.gvfs
.local/share/Trash/files/*
.local/share/Trash/info/*
.Xauthority
.ICEauthority
Save/*"
A plusz lemez a /home/teszt/Save alá van felcsatolva.
teszt@ubuntu2404:~/snap$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/vda2 during curtin installation
/dev/disk/by-uuid/ffd2cff9-11ef-4765-bd43-f81564cecfb4 / ext4 defaults 0 1
/swap.img none swap sw 0 0
/dev/disk/by-uuid/9f1568a0-7d0f-4b56-ac9a-029ed191a188 /home/teszt/Save auto defaults 0 0
teszt@ubuntu2404:~/snap$