Nov 192006
 

Sponsored Link

Data can be lost in different ways some of them are because of hardware failures,you accidentally delete or overwrite a file. Some data loss occurs as a result of natural disasters and other circumstances beyond your control.


If you want to know more about backup basics and diffrent types of backup you need to check here

Now we will see a easy backup and restore tool called "sbackup"

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.

Installing sbackup in ubuntu

sudo apt-get install sbackup

You can use synaptic also for this if you want to know how to search this software and install check here

Backup Your Data Using Sbackup

Once you completed the installation you can access sbackup using System--->Administration--->Simple Backup Config you can see this in the following screen

Next screen is asking for root password enter password and click ok

Once it opens the sbackup application you can see the following screen where you can configure your backup settings first tab is general options in this example i am choosing "Use custom backup settings"

Sbackup can be operated in 3 different modes

Recommended Backup

If you are new Ubuntu user or aren't sure what you should backup.This will perform a daily backup of your /home,system data held in /etc,/usr/local and /var.This will deliberately exclude any files over 100MB.By default this backup will be stored /var/backup

Custom Backup

This is same as the recommended backup and in this you can change the settings include,exclude files,you can change the schedule time.

Manual Backup

If you want to backup some files from time to time this option is for you and you can click backup now button to manually perform a backup according to the settings on the other backup properties dialog box tabs.

Next you click on "Include" tab here you can include any file or directory you want to backup

If you click on "Add file" button you should see the following screen where you can select your files

If you click on "Add Directory" button you should see the following screen where you can select your Directory for backup

Next option is "Exclude" here you can exclude files and folders you don't want to backup.Here you can exclude Paths,File Types,Regular Expressions,Max file,folder size

Next option is "Destination" here i am leaving the default location i.e /var/backup if you want to chnage the backup store location you can select the "Use Custom local Backup directory" and enter the location

Now you can select "Time" option here you can schedule when do you want to run your backup.

Available options for backups you can see in the following screen you can select hourly,daily,weekly,monthly,custom options


Next option is "Purging" here you can select old and incomplete backups and you set the no.of days you want to purge after completing all the settings you need to click on "Save" button to save your settings.

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 is started a background process with process id you can see this in the following screen

Restore Your Data Using Sbackup

If you want to restore backups or any files,folders go to System--->Administration--->Simple Backup Restore you can see this in the following screen

Once it opens you should see the following screen here you can select the restore source folder and available backups from drop-down menu here you can choose files and folders you want to restore and click on "Restore" button

In this example i have choosen 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 orginal location if you want to restore in different location you need to select "Restore As" option

Note:- By default Restored Files and Directories are owned by root this is because of sbackup will runs with root.You need to chnage these files or folder permissions using chmod or just right click and select properties of the file or folder.

Backup Destination on Remote machine

One more beauty about sbackup is you can store your backup on a remotemachine 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 "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.

Final Tip:-

Sbackup doesn't create a new backup file each time it runs and it creates an incremental backup.Which means that it updates the last backup with files that you changed or been created any files that haven't been updated since the last backup are unchanged

Sbackup Configuration from command line

If you want to configure sbackup you need to Edit /etc/sbackup.conf file

Restore Backup from command line

Run "sudo srestore.py /var/backup/2006-11-18_03 /home/myuser /home/myuser/old". You can omit the last parameter to restore to the same directory.

Sponsored Link

 Posted by at 6:00 pm

  43 Responses to “Backup and Restore Your Ubuntu System using Sbackup”

  1. Hi,

    When I tried using /media/backup or /home/admin/backup as destination in sbackup it locks the drive’s folder. For /media/backup the drive unlocks after a reboot and the folders sbackup created are available but for /home/admin/backup a reboot doesn’t give me access to the drive and if I chmod /home/admin/backup I have access to the drive but the sbackup folders are locked. Is there a way to stop this from happening.

    Thanks, Marc

  2. Hi, again

    Ok, so I didn’t read all the article. I use dapper 6.06 and have updated it. But I don’t have the purge option. Purge would help.

    Also about root, I read it was possible to create an extra “GUI” user that will be root and that this was a bad idea, is this because of software being free to do dumb stuff, me being free to do dumb stuff, or both ?

    Any help would be appreciated
    Thanks
    Marc

  3. Hi,

    So I found out how to install a .deb and now am happily running sbackup 0.10 (after uninstalling 0.9) . I also found out more about root during my travels.

    Anyway I like the way things are now. So thanks, this is one of the best pages I’ve seen and sometimes just getting a chance to ask a question is what’s needed.

    Best
    Marc

  4. I’am running sbackup under Ubuntu Edgy Eft 6.10 i386, When i try to restore /var it fails!
    I have come to the conclusion that it’s the /var/run directory that fails, is this map nessesary for a proper backup?

  5. I have installed Sbackup 0.10 on Ubuntu 6.10. After configuring it the way I want I click save. Then click Backup Now and nothing happens. When I close the program and reopen it it has not saved my setitings. Help please!!!! I just want to get my system backed up. Spent many hours trying but have gottenm no where!!

  6. Hi,
    I’ve used SBackup for a while now and it always worked really well. However for some reason it just doesnt make any backups anymore no matter whether it’s triggered by cron or manually. It only creates a text file called ver with 1.3 in it. But no files! I would appreciate any comments or help on this very much!
    Cheers

  7. Same problem as Johannes, I just installed sbackup on Ubuntu Feisty and when I try to backup to my external USB drive, I only get a file called “ver” and no other files. Help would be much appreciated. Thanks!

  8. Yes, sbackup appears to be broken for Ubuntu 7.04. I just installed & it does neither runs nor even bothers to save a config. Wonder if this is another of the dsh-vs-bash issues; or perhaps a change in a newer Python version

  9. I have installed Sbackup on two machines I have at home, an HP Pavilion dv8000 laptop with 2 gig ram and an HP Pavilion ZD8000 with a gig of ram. the program will backup as expected but the incremental backups aren’t automated. Both of the cron files reported to be created by the program are in place. the cron.d entry is there and contains data i.e. the files nad directories to back up. The other cron file is empty. Is this correct? I doubt it but don’t have a clue.
    thanks
    Bill

  10. i have a simple problem: I activate the prog and then follow the main window and ask me for the root password. After the input the request is password wrong. No way!! I can open a shell and use su. Password is absolutly correct. What is my Fault?

  11. Does it use any kind of compression? Is there a way to set the compression level?? That would be nice.

  12. anyone know where all he apps are stored (config files +all

  13. It seems to store everything in a “files.tgz”, so it uses gzip for compression. Two issues with this program:

    1) No option to backup without tarring or compressing. I prefer to backup everything as-is, ie. to just copy the files across without any specific treatment. This is just in case a file gets corrupted during a disk crash or the power suddenly goes out etc. If “files.tgz” becomes corrupted, then I’m stuffed, but if one of the files in the backup gets corrupted then it isn’t such a big problem.

    2) Small issue, I’ve started the backup process but I realized that I forgot to exclude a particular directory, and there seems to be no easy way to cancel the backup.

  14. What about ensuring the files being backed up are “quiet”, that is, they aren’t in the middle of being written to, or a daemon isn’t part way through updating several files so an inconsistent picture is taken? Does sbackup do anything to ensure that?

  15. Heiko:
    It wants your user password, not your root password. The main user on a system is by default an “admin” user, and you need your user password. Same with sudo. In fact, the gui box is just a front-end to sudo, I think. (gksudo)

    Lukasz:
    The easiest way to stop a backup would be to kill the process. sbackup tells you the PID number when it first starts. “kill PID” will stop it.

  16. Sbackup is certainly a superb backup tool, have been using it since available. Great writeup on Sbackup!!! Using dual disks I use the CRON setup in Sbackup to backup a ton of data every night to my dedicated second hard drive for backups. Sbackup has never failed me. Plus, for many users, I find it to be the most simple and reliable one I have found.

  17. I would like to back up my emails and a few files and stuff on a casual basis but find a lot of the techie speak above above me. It would be nice if simple terms like backing up evolution emails etc or documents/file name was used. Is there a link somewhere using similar terms.Sorry to be so pedestrian, but that’s me just learning to walk after Windows.

  18. Hi,

    How do I backup to a local ethernet drive?

    many thanks in advance!

  19. allright, i think i did it. I just inserted the destination in remote destination and instead of ftp or ssh I used smb.

  20. Well, now i’m thinking about it, I don’t know if it worked. Because I can’t see it in the place it’s supposed to be.

    Any help?

  21. sbackup installed easily in Intrepid. I attempted to back up with the default selections and exclusions, and sending the output to a (mounted) USB hard disk, which sbackup saw. I assumed that when I backed up my home folder, all subfolders would be included. The program appeared to start, gave me a process number, and my HD indicator flickered as if sbackup were looking around. I went back to work, but an hour later the sbackup process was no longer running … and the target folder for the backup was empty. I assume this bear of small brain is missing something, but what?

  22. to support Obform, I’m trying to manually run sbackup on 8.4 (hardy heron), it pops up the process number, but when I go look at the process table it gives me the process number then says sbackupd and my backup never runs. I’m running sbackup on another Ubuntu machine, 8.10 (Intrepid) where it seems to work just fine. Is there a problem with 8.4?

  23. The problem I found with sbackup (as it applies to Intrepid Ibex) was that while backing up and restoring worked very well either over the network (via CIFS), directly attached USB, or over SCP, I was unsuccessful attempting to restore the backups to another system while simulating full system failure. SBackup itself would not allow restoring from those archives, and manually untar-ing as root just hung the system. Any other ideas? I’m currently using Keep, but SBackup is just so much nicer to manage otherwise.

  24. What that like system backup ghost if with windows ?

  25. Although I have been using Windows for probably 30 yrs, I never got into doing backups because I trusted the System Restore facilty in Xp which worked, for the most part. I’m not an under the hood expert but used my pc to do taks, reasonably well. I aslso drive my car without being an expert motor mechanic/engineer.
    However I installed Simple Backup & restore on my AMd 64 with 500gb sata and 2gb of ram with Jaunty Jackalope (AKa vers9.04). Very impressed.
    Unfortunately it gives a black screen after entering the password at login.
    So, How does one restore a syastem from back up when the system does not even present a desktop or meanns of acessing the restore? You r advice greatly appreciated.John.

  26. John, I think the idea is you have a Live CD which allows you to boot a new copy of your old setup. Then you restore using SBackup from that GUI

  27. Is there a way to configure sbackup to follow symlinks?

  28. Hi,

    I have a new problem. I use Ubuntu 8.10 and 9.04 and simple backup restore works fine – now I have move to 9.10 and I cannot open from my usb-harddisk the files to restore it. What can I do ? Thanks for our help. Best regards Dieter

  29. I attempted to upgrade to Ubuntu 9.10 from 9.04. Before downloading 9.10, I ran SBackup to backup my files to a thumb drive. I also verified that SRestore saw the files on the thumb drive. After downloading 9.10 and restarting, my computer locked up. I reloaded 9.04 from a CD, downloaded the SBackup program from a repository, and attempted to Restore the files. I clicked “use custom” and browsed to find my backed up directory on the thumb drive. The files are there but they are not highlighted and SRestore says there are no files to restore. I checked “show hidden files” but the files will not highlight. I can click directly on the thumb drive, which does bring up the directory and my files. Why won’t SRestore restore my files?

    I also had a second backup method. I would make a copy of all my important files to a second USB drive. I wouldn’t mind just copying these files back to the hard drive and setting up my specific settings again. But I had encrypted two of the files with a PGP key and passphrase. After reloading 9.04, I used the same passphrase to create a new PGP key. When I click on these encrypted files on the thumb drive and attempt to decrypt them, it says I do not have the key. I’m guessing that even though I am using the same passphrase as on my previous version of 9.04, Ubuntu is creating a different key. If I were able to use SRestore, I believe that my specific settings including my PGP key would be restored and I could decrypt the encrypted files.

    Any assistance would be greatly appreciated!

  30. I tried using Srestore again and it worked this time. I was able to restore all my saved files, settings, and PGP key. I’m not sure what the trouble was, I must have been doing something wrong. All my files are back on my hard drive and I can access the encrypted files again. When a failure like this happens it is quite the learning experience. That’s when you find out if your backup system works or not. I’m quite happy with the Sbackup system and will continue to use it.

  31. Hello,

    I’m using Ubuntu 10.04 LTS – Lucid Lynx and recently installed Simple Backup Suite 0.10.4. I backuped to my extern HD. At next Boot, Ubuntu showed the Login-Prompt, but after entering my correct Pwd the same Loginprompt appeared, with a small window in the upper right corner of the monitor saying something “GNOME Energieverwaltung….too less disc space..”

    Using a knoppix live CD I accessed the computer and found my /home/tobias full of some .ecrypt…..-files, but my original data had all gone. I deleted those files.
    Now the system accepted my password again at boot, so I was able to start the restore function of sbackup. IT DOES NOT WORK!!!
    The restore window shows me all backuped directories I need, a click on “restore” opens a window like “restoring, may take some time”, but that’s all – even after hours :-(

    My wifes & sons accounts are unaffected, but I would LOVE to get back my evolution mails I know to be trapped in this files.tgz!
    It is quite scary to find a backup tool make vanish your whole data!

    Any suggestions?

    Tobias

  32. Nice, It’s even better in Lucid. The best options is backing up via SSH to a remove location.

  33. I use sbackup and had to reinstall the system “new learning” and when I connected to my firelite removable drive to restore using sbackup restore there were no images or files showing?

  34. Hi
    I am using SimpleBackup and so far I quite like it.
    What I am a bit unhappy about is the lack of control over the purging, or even more to the point that I don’t quite understand how it will purge exactly.

    Right now I have a fairly standard setting, incremental daily and full backup every 4 weeks.
    the logarythmic purging option says, “keep one backup per week from last month”
    I find this confusing. I haven’t been using it for a month, but what’s it going to do?
    It will essentially have 7 backups per week, but each of them will contain different files, right? Some files will have changes every day, so they are going to be in every backup.
    Is it going to purge an entire week by consolidating the files into one pack, keeping only one copy for those files that changed several times in that week?
    best
    M.

  35. BEWARE:
    I’ve been using SimpleBackup for the past month, and it seemed to be working fine. However, this week I decided to run a test restore on a new hard drive, as making backups is all fine and good, but not so useful if you can’t restore.

    I was using Ubuntu 10.04, and I installed 10.10 on a new drive for my test restore. When I tried to restore my most recent backup, I was told that my version 1.4 snapshot must be upgraded to a 1.5 snapshot first. Upon clicking the upgrade button, I was warned that this process could corrupt my snapshot! So I searched the web and found a discussion about this problem

    Apparently this is a known issue that doesn’t have any solutions that instill confidence. Since I don’t actually need to do a restore right now, I could safely install a newer version of SimpleBackup and restart my backing up process, but not everyone will be in my situation. Moreover, what if there’s another new snapshot version that invalidates my backups when I really need them? To be fair, I haven’t yet tried the upgrade and checked it for corruption (how?), but right now I think I’ll look into some other backup options.

  36. hello i would like to know
    if and how can sbackup save all the installed package from the original live usb
    where are these packages are stored in the file system?
    thank you

  37. I want to make a backup in a file server, the application allow incremental backups an full backups with iso images which can be burned on a DVD? I will very appreciate your answer.

  38. I use sbackup and it works fine except that I notice the files in the incremental backup include lots of files that haven’t changed. In fact most of the incremental backup archive is unchanged files.
    Anybody have any idea why?

  39. hello,i found no available Sbackup by using apt-cache search and synaptic .
    Could you give me a source address (for debian lenny 5.07) where i can get Sbackup?
    Thanks.

  40. This is really a very great site for beginners of Linux. I am a little confused though regarding the use of UBUNTU interface in most postings whereas this site is for Debian. Can anyone clarify this for me.

    thanks

  41. Charles — I think the answer to your question is that Ubuntu is based on Debian, uses ‘.deb’ files for installing programs, and probably uses some Debian libraries. And because Ubuntu is such a popular distro, a lot of references to Debian will be coming from Ubuntu users.

  42. Worth noting that on the Ubuntu community wiki page about this software, they mention:
    The stability and reliability of this package is questionable. As of 6/14/2011 there were 48 open bugs and little sign of development. A second bug reporting site shows signs of development.

    Backup software is important to have working properly, I’d suggest either doing regular restore tests or maybe just roll your own with rsync…

  43. “Note:- By default Restored Files and Directories are owned by root this is because of sbackup will runs with root.You need to chnage these files or folder permissions using chmod or just right click and select properties of the file or folder.”

    If that’s true then this backup utility is completely useless. If you’re backing up just a couple of files or three, you can do it by just copying them, and if your’re backing up a reasonable amoun of data you’re not going to manually restore the file owners and permissions of a few million files, are you?

    Is there a backup utility that will preserve file ownership and permissions?

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>