Difference between revisions of "Timeshift"

From PCLinuxOSHelp Knowledge Base
Jump to: navigation, search
(New page for TimeShift Backup/Restore)
 
m (size images)
Line 4: Line 4:
 
If not already installed on your system then search in Synaptic for '''timeshift''' to install Timeshift and its dependencies.  Once installed you will find it on the start menu under '''Archiving->Timeshift'''.  You will be prompted for the root password.  Enter the root password to continue and you will then see the main Timeshift window.   
 
If not already installed on your system then search in Synaptic for '''timeshift''' to install Timeshift and its dependencies.  Once installed you will find it on the start menu under '''Archiving->Timeshift'''.  You will be prompted for the root password.  Enter the root password to continue and you will then see the main Timeshift window.   
  
[[File:TimeShift-1.png]]
+
[[File:TimeShift-1.png|400px]]
  
 
At this point nothing is configured and so the first thing to do is click the '''Wizard''' button which will walk you through the process of configuring Timeshift snapshots.  Timemshift just needs 3 pieces of information: The snapshot type, the location to store the snapshots and a schedule for taking snapshots.   
 
At this point nothing is configured and so the first thing to do is click the '''Wizard''' button which will walk you through the process of configuring Timeshift snapshots.  Timemshift just needs 3 pieces of information: The snapshot type, the location to store the snapshots and a schedule for taking snapshots.   
Line 10: Line 10:
 
On the first screen you choose the type of snapshot.  Most users should select '''RSYNC''' as the snapshot type.  In RSYNC mode, snapshots are taken using rsync and hard-links. Common files are shared between snapshots which saves disk space. Each snapshot is a full system backup that can be browsed with a file manager.
 
On the first screen you choose the type of snapshot.  Most users should select '''RSYNC''' as the snapshot type.  In RSYNC mode, snapshots are taken using rsync and hard-links. Common files are shared between snapshots which saves disk space. Each snapshot is a full system backup that can be browsed with a file manager.
  
[[File:TimeShift-2.png]]
+
[[File:TimeShift-2.png|400px]]
  
 
Next Timeshift will estimate the amount of free space required for creating snapshots and then display a list of disks and partitions available on the system.  You can store your snapshots on your main system drive/partition if you wish but if you want to treat your Timeshift snapshots as normal system backups you should choose a partition on a non-system (external) drive.  Timeshift will store the snapshots under '' /timeshift'' on the selected partition.
 
Next Timeshift will estimate the amount of free space required for creating snapshots and then display a list of disks and partitions available on the system.  You can store your snapshots on your main system drive/partition if you wish but if you want to treat your Timeshift snapshots as normal system backups you should choose a partition on a non-system (external) drive.  Timeshift will store the snapshots under '' /timeshift'' on the selected partition.
  
[[File:TimeShift-3.png]]
+
[[File:TimeShift-3.png|400px]]
  
 
Timeshift will warn if there is not enough free space available on the selected partition.
 
Timeshift will warn if there is not enough free space available on the selected partition.
 
The next screen enables you to choose a schedule for creating snapshots if you want to.  Here you choose the frequency of the snapshots and the number of snapshots to keep.  So on the screen below a snapshot is taken every week and we keep 2 snapshots which means we have the option of rolling back to last week or the week before.
 
The next screen enables you to choose a schedule for creating snapshots if you want to.  Here you choose the frequency of the snapshots and the number of snapshots to keep.  So on the screen below a snapshot is taken every week and we keep 2 snapshots which means we have the option of rolling back to last week or the week before.
  
[[File:TimeShift-4.png]]
+
[[File:TimeShift-4.png|400px]]
  
 
The '''Boot''' option takes a snapshot after each reboot (after a delay of 10 minutes in order not to slow down the start up).
 
The '''Boot''' option takes a snapshot after each reboot (after a delay of 10 minutes in order not to slow down the start up).
Line 27: Line 27:
 
The next screen controls whether the contents of user home directories are included or not.  As explained earlier, Timeshift is designed to protect only system files and settings and so this should left to '''Exclude All Files'''.  If user directories were to be included the size of snapshots could quickly get out of hand.
 
The next screen controls whether the contents of user home directories are included or not.  As explained earlier, Timeshift is designed to protect only system files and settings and so this should left to '''Exclude All Files'''.  If user directories were to be included the size of snapshots could quickly get out of hand.
  
[[File:TimeShift-5.png]]
+
[[File:TimeShift-5.png|400px]]
  
 
You can now click '''Next''' or '''Finish'''.  Either way the setup is complete and you will be returned to the main screen.  If you configured scheduled snapshots then the current status will be shown at the bottom of the window.
 
You can now click '''Next''' or '''Finish'''.  Either way the setup is complete and you will be returned to the main screen.  If you configured scheduled snapshots then the current status will be shown at the bottom of the window.

Revision as of 06:23, 27 July 2020

Timeshift is an application that provides functionality similar to the System Restore feature in Windows and the Time Machine tool in Mac OS. Timeshift protects your system by taking incremental snapshots of the file system at regular intervals. These snapshots can be restored at a later date to undo all changes to the system. Timeshift is designed to protect only system files and settings User files such as documents, pictures and music are excluded. This ensures that your files remains unchanged when you restore your system to an earlier date.

Installing and running Timeshift

If not already installed on your system then search in Synaptic for timeshift to install Timeshift and its dependencies. Once installed you will find it on the start menu under Archiving->Timeshift. You will be prompted for the root password. Enter the root password to continue and you will then see the main Timeshift window.

TimeShift-1.png

At this point nothing is configured and so the first thing to do is click the Wizard button which will walk you through the process of configuring Timeshift snapshots. Timemshift just needs 3 pieces of information: The snapshot type, the location to store the snapshots and a schedule for taking snapshots.

On the first screen you choose the type of snapshot. Most users should select RSYNC as the snapshot type. In RSYNC mode, snapshots are taken using rsync and hard-links. Common files are shared between snapshots which saves disk space. Each snapshot is a full system backup that can be browsed with a file manager.

TimeShift-2.png

Next Timeshift will estimate the amount of free space required for creating snapshots and then display a list of disks and partitions available on the system. You can store your snapshots on your main system drive/partition if you wish but if you want to treat your Timeshift snapshots as normal system backups you should choose a partition on a non-system (external) drive. Timeshift will store the snapshots under /timeshift on the selected partition.

TimeShift-3.png

Timeshift will warn if there is not enough free space available on the selected partition. The next screen enables you to choose a schedule for creating snapshots if you want to. Here you choose the frequency of the snapshots and the number of snapshots to keep. So on the screen below a snapshot is taken every week and we keep 2 snapshots which means we have the option of rolling back to last week or the week before.

TimeShift-4.png

The Boot option takes a snapshot after each reboot (after a delay of 10 minutes in order not to slow down the start up).

You can choose not to have scheduled snapshots by unticking all the options. In that case you would create snapshots yourself by clicking the Create button on the main screen perhaps before doing a system update.

The next screen controls whether the contents of user home directories are included or not. As explained earlier, Timeshift is designed to protect only system files and settings and so this should left to Exclude All Files. If user directories were to be included the size of snapshots could quickly get out of hand.

TimeShift-5.png

You can now click Next or Finish. Either way the setup is complete and you will be returned to the main screen. If you configured scheduled snapshots then the current status will be shown at the bottom of the window.

TimeShift-6.png

You can change any of the settings by clicking the Settings button at the top of the Window.