sudo wget https://github.com/teejee2008/timeshift/releases/download/v19.08.1/timeshift_19.08.1_amd64.deb
sudo dpkg -i timeshift_19.08.1_amd64.deb
dpkg: error processing package timeshift (--install):
dependency problems - leaving unconfigured
Processing triggers for mime-support (3.60) ...
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
sudo apt -f install -y
Esmalt ennem konfigureerimist on vaja saada teada kõvaketta ID. Selleks sisesta järgmine käsk:
sudo nano /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/sda2 during installation
UUID=ee7830db-8cee-47fa-9a5d-d6be6793c471 / ext4 errors=remount-ro 0 0
# /boot was on /dev/sda1 during installation
UUID=92c3bb76-d0a1-4e72-8142-9f4e77d41e92 /boot ext4 defaults,noatime 0 0
Sulge see fail ja loo nüüd Timeshift konfiguratsioonifail käsuga:
sudo nano /etc/timeshift.json
{
"backup_device_uuid" : "ee7830db-8cee-47fa-9a5d-d6be6793c471",
"parent_device_uuid" : "",
"do_first_run" : "false",
"btrfs_mode" : "false",
"include_btrfs_home_for_backup" : "false",
"include_btrfs_home_for_restore" : "false",
"stop_cron_emails" : "true",
"btrfs_use_qgroup" : "true",
"schedule_monthly" : "false", //kui on true siis loob snapshotsi (varukoopia) iga kuu
"schedule_weekly" : "false", //see iga nädal
"schedule_daily" : "true", // see iga päev
"schedule_hourly" : "true", // see iga tund
"schedule_boot" : "true", // see pärast iga restarti
"count_monthly" : "2", // need allolevad näitavad, kui mitu faili korraga luuakse.
"count_weekly" : "3",
"count_daily" : "4",
"count_hourly" : "2",
"count_boot" : "2",
"snapshot_size" : "0",
"snapshot_count" : "0",
"exclude" : [
"+ /var/www**",
"+ /root/**"
],
"exclude-apps" : [
]
}
Nüüd loome esimese Snapshot faili süsteemist käsuga:
sudo timeshift --create --comment 'siia märkide vahele kirjuta kommentaar mis aitab aru saada millega tegu. Näiteks puhas veebiserveri install'
sudo timeshift --list // kuvab sulle kogu nimekirja olemas olevatest Snapshotidest
sudo timeshift --restore //taastamiseks. Kui see käimalastud, siis kuvab nimekirja olemasolevatest. Vali millist seisu taastada soovid ja pärast küsib veel mõne kinnitava küsimuse. Hiljem peale õnnestunud taastamist teeb automaatselt restardi ja ongi eelmine seis taastatud.