You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that it would be an improvement to existing documentation to include an example of using Timeshift on a headless server. After a fair amount of googling and piecing together a methodology (any blogs that I found on the subject were incomplete) which I offer below:
Install timeshift using
$ sudo apt install timeshift -y
After installation we should manually run timeshift and create our first snapshot; first we need to know the details of the filesystem
First run mode (config file not found)
Selected default snapshot type: RSYNC
Mounted '/dev/sda1' at '/run/timeshift/backup'
------------------------------------------------------------------------------
Estimating system size...
Creating new snapshot...(RSYNC)
Saving to device: /dev/sda1, mounted at path: /run/timeshift/backup
Synching files with rsync...
Created control file: /run/timeshift/backup/timeshift/snapshots/2023-03-05_09-39-32/info.json
RSYNC Snapshot saved successfully (1179s)
Tagged snapshot '2023-03-05_09-39-32': ondemand
------------------------------------------------------------------------------
After this command the Timeshift configuration files can be found @ /etc/timeshift/timeshift.json; these should be modified according to your needs.
The above settings configure Timeshift to retain 2 Monthly Backups, 5 Boot Backups and 5 Daily Backups
Finally to ensure settings are properly installed in the system do the following:
$ sudo timeshift --check
Response:
/dev/sda1 is mounted at: /run/timeshift/backup, options: rw,relatime
Boot snapshots are enabled
Last boot snapshot not found
Tagged snapshot '2023-03-05_09-39-32': boot
Daily snapshots are enabled
Last daily snapshot not found
Tagged snapshot '2023-03-05_09-39-32': daily
Monthly snapshot are enabled
Last monthly snapshot not found
Tagged snapshot '2023-03-05_09-39-32': monthly
------------------------------------------------------------------------------
Added cron task: /etc/cron.d/timeshift-hourly
Added cron task: /etc/cron.d/timeshift-boot
To show the current state of play, at any time, use the following command
$ sudo timeshift --list
Response:
/dev/sda1 is mounted at: /run/timeshift/backup, options: rw,relatime
Device : /dev/sda1
UUID : 00c58084-7b61-4f18-a321-d977b4e0b6cb
Path : /run/timeshift/backup
Mode : RSYNC
Status : OK
1 snapshots, 198.9 GB free
Num Name Tags Description
------------------------------------------------------------------------------
0 > 2023-03-05_09-39-32 O B D M First Snapshot
The text was updated successfully, but these errors were encountered:
Great guide. Thanks! One question in your case did sudo timeshift --check set up the chron jobs automatically. In my case that does not seem to be the case. Would you mind sharing how the entries are set up in chron so I can add them manually?
Great guide. Thanks! One question in your case did sudo timeshift --check set up the chron jobs automatically. In my case that does not seem to be the case. Would you mind sharing how the entries are set up in chron so I can add them manually?
I understand that sudo timeshift --check sets up the cron jobs automatically (the response says it does)... If I type it again I don't get told that the cron jobs have been added. You can check they are running properly with the command 'sudo timeshift --list'
I believe that it would be an improvement to existing documentation to include an example of using Timeshift on a headless server. After a fair amount of googling and piecing together a methodology (any blogs that I found on the subject were incomplete) which I offer below:
Install timeshift using
$ sudo apt install timeshift -y
After installation we should manually run timeshift and create our first snapshot; first we need to know the details of the filesystem
$ df -h
the response will be something like:
Our target device is /dev/sda1
To create first snapshot run timeshift with the following command:
$ sudo timeshift --create --comments "First Snapshot" --snapshot-device /dev/sda1
Output:
After this command the Timeshift configuration files can be found @ /etc/timeshift/timeshift.json; these should be modified according to your needs.
For Example:
The above settings configure Timeshift to retain 2 Monthly Backups, 5 Boot Backups and 5 Daily Backups
Finally to ensure settings are properly installed in the system do the following:
$ sudo timeshift --check
Response:
To show the current state of play, at any time, use the following command
$ sudo timeshift --list
Response:
The text was updated successfully, but these errors were encountered: