个人工具

“UbuntuHelp:BackupYourSystem/SimpleBackupSuite”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第3行: 第3行:
 
This guide is part of the [[UbuntuHelp:BackupYourSystem|BackupYourSystem]] Page. It is separate for the sake of organization.  
 
This guide is part of the [[UbuntuHelp:BackupYourSystem|BackupYourSystem]] Page. It is separate for the sake of organization.  
 
== Introduction ==
 
== Introduction ==
Data can be lost in many different ways. Sometimes it is lost because of hardware failures, accidental deletion, or overwriting files. Some data loss occurs as a result of natural disasters and other circumstances beyond your control.
+
As discussed previously in this article's parent introduction, data can be lost in innumerable ways. In order to stave off such loss, it's important to have a good backup strategy. Simple Backup Suite (sbackup hereafter) can be part of such an effort.
Now we will use an easy backup and restore tool called Simple Backup Suite, or ''sbackup'' for short.
+
Sbackup is a powerful GUI backup program designed for desktop use, with a full set of features. It can backup any subset of files and directories, while obeying exclusion rules and limits on individual file sizes backed up. Backups may be saved to any local and remote directories that are supported by gnome-vfs.
SBackup is a simple backup solution intended for desktop use. It can backup any subset of files and directories. Exclusions can be defined by regular expressions. A maximum individual file size limit can be defined. Backups may be saved to any local and remote directories that are supported by gnome-vfs. There is a Gnome GUI interface for configuration and restore.
+
As noted previously, sbackup uses compressed archives so it is not the best backup solution if you are primarily backing up large amounts of multimedia.  These data types are already compressed during encoding. Making archives including such files will spend lots of time compressing these files with '''gzip''' with little to no space being saved.
SBackup uses compressed archives, so it is not the best backup solution if you are primarily backing up large amounts of multimedia like videos, photographs, or music.  These data types are already compressed, so you will spend lots and lots of time compressing these files with <code><nowiki>gzip</nowiki></code> with little or no space being saved.
+
 
== Installation ==
 
== Installation ==
To install sbackup, you need to install the '''sbackup''' package from the '''Universe Repository'''. You can use Synaptic, or install from terminal:
+
To install sbackup ensure '''Universe''' section of the Ubuntu repositories is enabled in your [[UbuntuHelp:Repositories/Ubuntu|Software Sources]]. Then [[UbuntuHelp:InstallingSoftware#installing-a-package|install the following package]]: '''''[[UbuntuHelp:apt:sbackup|sbackup]]'''''.
<pre><nowiki>
+
Once you have completed the installation you can access sbackup from the following menus '''System''' -> '''Administration''' -> '''Simple Backup Config'''. Enter your password when prompted, this program requires [[UbuntuHelp:RootSudo|Sudo]] privileges because it backs up files owned by the root in the <code><nowiki>/</nowiki></code> directory.
sudo apt-get install sbackup
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=1.png <<BR>>
</nowiki></pre>
+
 
== Backing Up Your Data ==
 
== Backing Up Your Data ==
Once you have completed the installation you can access sbackup using '''System''' -> '''Administration''' —> '''Simple Backup Config''', you can see this in the following screen
+
=== General Tab ===
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=1.png
+
Upon start up, you will be confronted with the default welcome screen, the '''General''' tab. It lists the three main operating modes described below.
<<BR>>
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=3.png <<BR>>
The next screen is asking for your user password. Enter your user password and click ok.
+
'''Recommended Backup''' <<BR>>
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=2.png
+
If you are new Ubuntu user or are not sure what you should backup. This will perform a daily backup of your <code><nowiki>/home</nowiki></code>, as well as system data held in <code><nowiki>/etc</nowiki></code>, <code><nowiki>/usr/local</nowiki></code> and <code><nowiki>/var</nowiki></code>. This will deliberately exclude any files over 100MB as well as common multimedia file types. By default the archive created will be stored in <code><nowiki>/var/backup</nowiki></code>.
<<BR>>
+
'''Custom Backup''' <<BR>>
Once it opens the sbackup application you can see the following screen where you can configure your backup settings. The first tab is general options. In this example I am choosing ''Use custom backup settings''.
+
This selection allows you to customize a profile and modify all options such as the include and exclusion rules, the scheduling time and where the backup will be made. The backup will proceed according to the settings on the tabs other than '''General'''.
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=3.png
+
'''Manual Backup''' <<BR>>
<<BR>>
+
If you want to manually control when the backups are performed choose this option. To start the operation click the '''Backup Now!''' button at the bottom of the window. The backup will the proceed according to the settings on the other backup properties tabs. With this option you will be able to specify where to save the backup file.
Sbackup can be operated in 3 different modes
+
From this point onward, it will be assumed that you have selected either ''Use custom backup'' or ''Manual backups only''. If you chose ''recommended backup'', the settings on the following pages will have no effect.
=== Recommended Backup ===
+
=== Include Tab ===
If you are new Ubuntu user or are not sure what you should backup. This will perform a daily backup of your <code><nowiki>/home</nowiki></code>, system data held in <code><nowiki>/etc</nowiki></code>, <code><nowiki>/usr/local</nowiki></code> and <code><nowiki>/var</nowiki></code>. This will deliberately exclude any files over 100MB. By default this backup will be stored in <code><nowiki>/var/backup</nowiki></code>.
+
This tab is used to create rules for what directories and files will be included in the backup. Use the '''Add File''' and '''Add Direcory''' buttons to add individual files and whole directories to the backup. Both buttons bring you to a standard explorer popup. To remove an entry listed in the main pane, simply highlight the entry to delete and push '''Remove'''.
=== Custom Backup ===
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=4.png <<BR>>
This is the same as the recommended backup and in this you can change the settings include, exclude files, you can change the schedule time. With this option you will be able to specify where to save the backup file.
+
=== Exclude Tab ===
=== Manual Backup ===
+
The next tab is '''Exclude'''. This tab is used to define exclusion rules according to different properties. There are four different ways to create these rules.
If you want to backup some files from time to time this option is for you. You can click backup now button to manually perform a backup according to the settings on the other backup properties dialog box tabs. With this option you will be able to specify where to save the backup file.
+
* '''Paths''' - Files and Folders can be excluded in the same manner as they were included in the previous tab.
For the rest of the guide, it will be assumed that you chose the ''custom backup'' or the ''manual backup'' option. If you chose the ''recommended backup'', you will not be able to customize any settings.
+
* '''File types''' - Allows a user to exclude files based on the type, say for instance all .mp3 or .avi files the backup may find in the included directories.  
Next, click on the ''Include'' tab. Here you can include any file or directory you want to backup.
+
* ''' Regex''' - Allows a user to define rules based on regular expression, this option is for advanced users.
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=4.png
+
* '''Max size''' - As you may think, defines rules to exclude files based on a maximum file size. If set at 100Mb for instance, it will exclude all files greater than the limit.
<<BR>>
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=7.png <<BR>>
If you click on the ''Add file'' button you should see the following screen where you can select your files.
+
=== Destination Tab ===
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=5.png
+
By default the archive will be created in <code><nowiki>/var/backup</nowiki></code> If you want to change the backup location you can select ''Use custom local backup directory'' and enter any location local to the machine. To backup over the network, use the ''Use a remote directory'' option and fill in the parameters. A more complete explanation of network backup can be found further in this article.
<<BR>>
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=8.png <<BR>>
If you click on the ''Add Directory'' button you should see the following screen where you can select your directory for backup.
+
=== Time Tab ===
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=6.png
+
This tab is used to schedule when you want to run your backup.  
<<BR>>
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=17.png <<BR>>
The next option is ''Exclude''. Here you can exclude files and folders you do not want to backup.You can exclude Paths, File Types, Regular Expressions, Max file, folder size.
+
Available options for when to '''Do backups''' are shown in the following screen: ''never, hourly, daily, weekly, monthly'', and ''custom'' options. The first five are straightforward, while the last allows for the creation of a cron definition (for advanced users). To the right of this drop down menu, you will find the options ''simply'' and ''precisely at'', they are explained below.
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=7.png
+
* '''Simply''' - Will make the backup when the computer is found available after the desired time has passed. "Precisely" would not make a backup if your computer is not turned on at the precise time, it would wait for the next scheduled time.
<<BR>>
+
* '''Precisely''' - Will allow you to choose a specific date to perform the backup, say perhaps 6:15 AM daily. This can be configured with the ''Day of month'', ''Day of week'', ''Hour'' and ''Minute'' depending on what interval is selected in ''Do backups''.
The next option is ''Destination''. Here I am leaving the default location, i.e <code><nowiki>/var/backup</nowiki></code> If you want to change the backup store location you can select ''Use Custom local Backup directory'' and enter the location.
+
* '''Custom cron time definition''' - This option is for advanced users, select ''custom'' from '''Do backups''' drop down and you will be able to create a cron job here.
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=8.png
+
* '''Do a full backup at least once every''' - Sbackup does <u>NOT</u> create a new backup file each time it runs. Instead, it creates an incremental backup, that is to say only new files modified since the last backup (full or incremental) are archived. Incremental backups therefore are tied directly to the last full back through incremental steps, like a series of patches to an OS applied one after the other. This option allows you to tell sbackup how often to create a new full archive, by default it is set to 21 days. Full backups take more space then incremental, so if you decrease the interval ensure you have the space on your backup location.  
<<BR>>
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=10.png <<BR>>
Now you can select the ''Time'' option. Here you can schedule when you want to run your backup.
+
=== Purging Tab ===
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=9.png
+
Here you can set how old archives should be handled after a certain time. The options are self explanatory and should be set according to your needs and available space on hard drive.
<<BR>>
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=11.png <<BR>>
Available options for backups you can see in the following screen are: hourly, daily, weekly, monthly, and custom options.
+
Once all the options have been set as desired, push the '''Save''' button at the bottom to preserve your settings. You <u>must</u> save before performing a backup manual or scheduled or else your new settings won't take effect. Now if you want to make a backup just click on '''Backup Now!''' or wait for it to be performed on schedule if set. After starting the backup, the following confirmation will be displayed listing the background process ID.
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=10.png
+
<<BR>>
+
The next option is ''Purging''. Here you can select old and incomplete backups and set the number of days you want to purge after completing. All the settings you change require you to click on the ''Save'' button to save your settings.
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=11.png
+
<<BR>>
+
Now if you want to take backup just click on ''Backup Now'' or leave the schedule backup in this example. I just clicked on ''Backup Now'', this started a background process with process id you can see this in the following screen.
+
 
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=12.png
 
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=12.png
 
== Restore Your Data ==
 
== Restore Your Data ==
 
If you want to restore backups or any files or folders go to '''System''' —> '''Administration''' —> '''Simple Backup Restore''', as shown in the following screen.
 
If you want to restore backups or any files or folders go to '''System''' —> '''Administration''' —> '''Simple Backup Restore''', as shown in the following screen.
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=13.png
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=13.png <<BR>>
<<BR>>
+
Once it opens you should see the following screen. Here you can select the restore source folder and available backups from drop-down menu. Choose the files and folders you want to restore and click on the '''Restore''' button.  
Once it opens you should see the following screen. Here you can select the restore source folder and available backups from drop-down menu. Choose the files and folders you want to restore and click on the ''Restore'' button.
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=14.png <<BR>>
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=14.png
+
In this example, I have chosen to restore a single .iso file. After selection, simply push the '''Restore''' button and confirm your action when prompted. The file will then be restored to its original location. If you want to restore it to a different location select the '''Restore As...''' option.
<<BR>>
+
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=15.png <<BR>>
In this example I have choose to restore one .iso file and once you select your file and click on ''Restore'' it will ask for your confirmation. Click on yes, this will restore the file in its original location. If you want to restore in a different location you need to select the ''Restore As'' option.
+
'''Note:''' By default, restored files and directories are owned by root. This is because sbackup runs with root privileges. To change the permissions of files or folders you should own, either use chmod from a terminal or just right click and select properties of the file or folder. For additional information see [[UbuntuHelp:FilePermissions|FilePermissions]].
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=15.png
+
== Backup Destination on Remote Machine ==
<<BR>>
+
One more nice feature of sbackup is that you can store your backup on a remote machine, either using SSH or FTP. For this go to '''System''' —> '''Administration''' —> '''Simple Backup Config'''. Under the '''Destination''' tab, you can select to ''Use a remote Directory''. In the box, type ssh:// or ftp:// followed by the username:password, then @, then the remote host to connect to and the remote directory. '''Test''' button can be used to ensure the host is reachable.
'''Note:''' By default, Restored Files and Directories are owned by root This is because sbackup runs with root priveleges. You need to change these file or folder permissions using chmod, or just right click and select properties of the file or folder.
+
If you do not want to expose your password in the clear you can use [[UbuntuHelp:SSH|SSH]] keys. For more information see its respective page, a short example follows below. Comments have been added (#) above each step:
== Backup Destination on Remote machine ==
+
One more nice thing about sbackup is that you can store your backup on a remote machine. For this it will give the option of using SSH or FTP. For this go to '''System''' —> '''Administration''' —> '''Simple Backup Config''' Once it opens the application you need to click on destination tab. Here you can select the ''Use a remote Directory'' option, type ssh:// or ftp:// followed by the username:password, then @, then the remote host to connect to and the remote directory.
+
If you do not want to expose your password in the clear you can use ssh keys:
+
 
<pre><nowiki>
 
<pre><nowiki>
 
# switch to root
 
# switch to root
第85行: 第74行:
 
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=16.png
 
https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite?action=AttachFile&do=get&target=16.png
 
<<BR>>
 
<<BR>>
'''Final Tip:'''
+
== Sbackup from the Command Line ==
Sbackup does not create a new backup file each time it runs, instead it creates an incremental backup. This means that it updates the last backup with files which have been modified or created. Any files that have not been modified since the last backup are unchanged.
+
=== Configuration ===
== Sbackup Configuration from the command line ==
+
If you want to configure sbackup from a terminal you need to edit the <code><nowiki>/etc/sbackup.conf</nowiki></code> file. The following command for example will do:
If you want to configure sbackup you need to edit the <code><nowiki>/etc/sbackup.conf</nowiki></code> file.
+
<pre><nowiki>
Restore Backup from command line
+
sudo nano /etc/sbackup.conf </nowiki></pre>
Run
+
=== Restore Backup from the Command Line ===
 +
To restore a particular backup from a terminal, use a command along the following lines.
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo srestore.py /var/backup/2006-11-18_03 /home/myuser /home/myuser/old
 
sudo srestore.py /var/backup/2006-11-18_03 /home/myuser /home/myuser/old
 
</nowiki></pre>
 
</nowiki></pre>
You can omit the last parameter to restore to the same directory.  
+
In this example, srestore.py will use the backup <code><nowiki>/var/backup/2006-11-18_03</nowiki></code> and restore the backup of the the directory <code><nowiki>/home/myuser</nowiki></code> to the current directory <code><nowiki>/home/myuser/old</nowiki></code>. Your command will of course need to be tailored to your needs.
== Automatically backup at shutdown ==
+
== Automatically Backup at Shutdown ==
 
In case you want to shutdown your workstation when you're done and not have to backup manually every now-and-then, you might find it useful to have simple-backup being run every time you log off. To enable this, you need to do only a few things:  
 
In case you want to shutdown your workstation when you're done and not have to backup manually every now-and-then, you might find it useful to have simple-backup being run every time you log off. To enable this, you need to do only a few things:  
<ol><li>save this page [[UbuntuHelp:attachment:sbackupd|attachment:sbackupd]] to `/etc/initd/`
+
<ol><li>Save this page [[UbuntuHelp:attachment:sbackupd|attachment:sbackupd]] to `/etc/initd/`
</li><li>set file ownership to `root:root` and file permissions to: `rwx-r-xr-x`
+
</li><li>Set file ownership to `root:root` and file permissions to: `rwx-r-xr-x`. See [[UbuntuHelp:FilePermissions|FilePermissions]] for help.
</li><li>execute the following from a terminal: <pre><nowiki>
+
</li><li>Execute the following from a terminal: <pre><nowiki>
 
sudo update-rc.d sbackupd start 00 0 1 6 .
 
sudo update-rc.d sbackupd start 00 0 1 6 .
</nowiki></pre> which will effectively run the downloaded script every time Ubuntu comes into single-user-mode, shutdown or reboot. Since the script will only run `sbackupd`, this effectively gives you a backup every time you shutdown or reboot your machine. <br></li></ol>
+
</nowiki></pre> This will run the downloaded script every time Ubuntu comes into single-user-mode, shutdown or reboot. Since the script will only run `sbackupd`, this effectively gives you a backup every time you shutdown or reboot your machine.</li></ol>
  
 
I find it useful to use both a schedule and this 'at-shutdown' script because i get a backup at least once a day, and i needn't care about keeping my machine powered on.  
 
I find it useful to use both a schedule and this 'at-shutdown' script because i get a backup at least once a day, and i needn't care about keeping my machine powered on.  
If you find this overkill, you can revert to manual by executing <pre><nowiki>
+
This scheduled backup at shutdown can be removed with the following command:<pre><nowiki>
 
sudo update-rc.d -f sbackupd remove
 
sudo update-rc.d -f sbackupd remove
 
</nowiki></pre>
 
</nowiki></pre>
 
----
 
----
[[category:CategoryBackupRecovery]]
+
[[category:CategoryBackupRecovery]] [[category:CategoryInstallation]] [[category:CategoryInstallation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年11月17日 (二) 18:36的版本

This guide is part of the BackupYourSystem Page. It is separate for the sake of organization.

Introduction

As discussed previously in this article's parent introduction, data can be lost in innumerable ways. In order to stave off such loss, it's important to have a good backup strategy. Simple Backup Suite (sbackup hereafter) can be part of such an effort. Sbackup is a powerful GUI backup program designed for desktop use, with a full set of features. It can backup any subset of files and directories, while obeying exclusion rules and limits on individual file sizes backed up. Backups may be saved to any local and remote directories that are supported by gnome-vfs. As noted previously, sbackup uses compressed archives so it is not the best backup solution if you are primarily backing up large amounts of multimedia. These data types are already compressed during encoding. Making archives including such files will spend lots of time compressing these files with gzip with little to no space being saved.

Installation

To install sbackup ensure Universe section of the Ubuntu repositories is enabled in your Software Sources. Then install the following package: sbackup. Once you have completed the installation you can access sbackup from the following menus System -> Administration -> Simple Backup Config. Enter your password when prompted, this program requires Sudo privileges because it backs up files owned by the root in the / directory. SimpleBackupSuite?action=AttachFile&do=get&target=1.png <
>

Backing Up Your Data

General Tab

Upon start up, you will be confronted with the default welcome screen, the General tab. It lists the three main operating modes described below. SimpleBackupSuite?action=AttachFile&do=get&target=3.png <
> Recommended Backup <
> If you are new Ubuntu user or are not sure what you should backup. This will perform a daily backup of your /home, as well as system data held in /etc, /usr/local and /var. This will deliberately exclude any files over 100MB as well as common multimedia file types. By default the archive created will be stored in /var/backup. Custom Backup <
> This selection allows you to customize a profile and modify all options such as the include and exclusion rules, the scheduling time and where the backup will be made. The backup will proceed according to the settings on the tabs other than General. Manual Backup <
> If you want to manually control when the backups are performed choose this option. To start the operation click the Backup Now! button at the bottom of the window. The backup will the proceed according to the settings on the other backup properties tabs. With this option you will be able to specify where to save the backup file. From this point onward, it will be assumed that you have selected either Use custom backup or Manual backups only. If you chose recommended backup, the settings on the following pages will have no effect.

Include Tab

This tab is used to create rules for what directories and files will be included in the backup. Use the Add File and Add Direcory buttons to add individual files and whole directories to the backup. Both buttons bring you to a standard explorer popup. To remove an entry listed in the main pane, simply highlight the entry to delete and push Remove. SimpleBackupSuite?action=AttachFile&do=get&target=4.png <
>

Exclude Tab

The next tab is Exclude. This tab is used to define exclusion rules according to different properties. There are four different ways to create these rules.

  • Paths - Files and Folders can be excluded in the same manner as they were included in the previous tab.
  • File types - Allows a user to exclude files based on the type, say for instance all .mp3 or .avi files the backup may find in the included directories.
  • Regex - Allows a user to define rules based on regular expression, this option is for advanced users.
  • Max size - As you may think, defines rules to exclude files based on a maximum file size. If set at 100Mb for instance, it will exclude all files greater than the limit.

SimpleBackupSuite?action=AttachFile&do=get&target=7.png <
>

Destination Tab

By default the archive will be created in /var/backup If you want to change the backup location you can select Use custom local backup directory and enter any location local to the machine. To backup over the network, use the Use a remote directory option and fill in the parameters. A more complete explanation of network backup can be found further in this article. SimpleBackupSuite?action=AttachFile&do=get&target=8.png <
>

Time Tab

This tab is used to schedule when you want to run your backup. SimpleBackupSuite?action=AttachFile&do=get&target=17.png <
> Available options for when to Do backups are shown in the following screen: never, hourly, daily, weekly, monthly, and custom options. The first five are straightforward, while the last allows for the creation of a cron definition (for advanced users). To the right of this drop down menu, you will find the options simply and precisely at, they are explained below.

  • Simply - Will make the backup when the computer is found available after the desired time has passed. "Precisely" would not make a backup if your computer is not turned on at the precise time, it would wait for the next scheduled time.
  • Precisely - Will allow you to choose a specific date to perform the backup, say perhaps 6:15 AM daily. This can be configured with the Day of month, Day of week, Hour and Minute depending on what interval is selected in Do backups.
  • Custom cron time definition - This option is for advanced users, select custom from Do backups drop down and you will be able to create a cron job here.
  • Do a full backup at least once every - Sbackup does NOT create a new backup file each time it runs. Instead, it creates an incremental backup, that is to say only new files modified since the last backup (full or incremental) are archived. Incremental backups therefore are tied directly to the last full back through incremental steps, like a series of patches to an OS applied one after the other. This option allows you to tell sbackup how often to create a new full archive, by default it is set to 21 days. Full backups take more space then incremental, so if you decrease the interval ensure you have the space on your backup location.

SimpleBackupSuite?action=AttachFile&do=get&target=10.png <
>

Purging Tab

Here you can set how old archives should be handled after a certain time. The options are self explanatory and should be set according to your needs and available space on hard drive. SimpleBackupSuite?action=AttachFile&do=get&target=11.png <
> Once all the options have been set as desired, push the Save button at the bottom to preserve your settings. You must save before performing a backup manual or scheduled or else your new settings won't take effect. Now if you want to make a backup just click on Backup Now! or wait for it to be performed on schedule if set. After starting the backup, the following confirmation will be displayed listing the background process ID. SimpleBackupSuite?action=AttachFile&do=get&target=12.png

Restore Your Data

If you want to restore backups or any files or folders go to System —> Administration —> Simple Backup Restore, as shown in the following screen. SimpleBackupSuite?action=AttachFile&do=get&target=13.png <
> Once it opens you should see the following screen. Here you can select the restore source folder and available backups from drop-down menu. Choose the files and folders you want to restore and click on the Restore button. SimpleBackupSuite?action=AttachFile&do=get&target=14.png <
> In this example, I have chosen to restore a single .iso file. After selection, simply push the Restore button and confirm your action when prompted. The file will then be restored to its original location. If you want to restore it to a different location select the Restore As... option. SimpleBackupSuite?action=AttachFile&do=get&target=15.png <
> Note: By default, restored files and directories are owned by root. This is because sbackup runs with root privileges. To change the permissions of files or folders you should own, either use chmod from a terminal or just right click and select properties of the file or folder. For additional information see FilePermissions.

Backup Destination on Remote Machine

One more nice feature of sbackup is that you can store your backup on a remote machine, either using SSH or FTP. For this go to System —> Administration —> Simple Backup Config. Under the Destination tab, you can select to Use a remote Directory. In the box, type ssh:// or ftp:// followed by the username:password, then @, then the remote host to connect to and the remote directory. Test button can be used to ensure the host is reachable. If you do not want to expose your password in the clear you can use SSH keys. For more information see its respective page, a short example follows below. Comments have been added (#) above each step:

# switch to root
sudo su -
# create a key set without a passphrase
ssh-keygen
# copy the public key to the backup server
ssh-copy-id backup-user@backup-server/path/to/backups/machine-id/
# test that the connection will work without a password
ssh backup-user@backup-server
# make sure that the backup user can in fact write to the backup directory
touch /path/to/backups/machine-id/test.txt
rm /path/to/backups/machine-id/test.txt

SimpleBackupSuite?action=AttachFile&do=get&target=16.png <
>

Sbackup from the Command Line

Configuration

If you want to configure sbackup from a terminal you need to edit the /etc/sbackup.conf file. The following command for example will do:

sudo nano /etc/sbackup.conf 

Restore Backup from the Command Line

To restore a particular backup from a terminal, use a command along the following lines.

sudo srestore.py /var/backup/2006-11-18_03 /home/myuser /home/myuser/old

In this example, srestore.py will use the backup /var/backup/2006-11-18_03 and restore the backup of the the directory /home/myuser to the current directory /home/myuser/old. Your command will of course need to be tailored to your needs.

Automatically Backup at Shutdown

In case you want to shutdown your workstation when you're done and not have to backup manually every now-and-then, you might find it useful to have simple-backup being run every time you log off. To enable this, you need to do only a few things:

  1. Save this page attachment:sbackupd to `/etc/initd/`
  2. Set file ownership to `root:root` and file permissions to: `rwx-r-xr-x`. See FilePermissions for help.
  3. Execute the following from a terminal:
    sudo update-rc.d sbackupd start 00 0 1 6 .
    
    This will run the downloaded script every time Ubuntu comes into single-user-mode, shutdown or reboot. Since the script will only run `sbackupd`, this effectively gives you a backup every time you shutdown or reboot your machine.

I find it useful to use both a schedule and this 'at-shutdown' script because i get a backup at least once a day, and i needn't care about keeping my machine powered on.

This scheduled backup at shutdown can be removed with the following command:
sudo update-rc.d -f sbackupd remove