PDA

View Full Version : [ubuntu] Simple backup: How to tell when backup completes?



Chimmer
May 23rd, 2008, 08:39 PM
I'm using Simple Backup Suite (https://help.ubuntu.com/community/BackupYourSystem/SimpleBackupSuite) to backup my Ubuntu data. Is there any way to tell when the backup completes?

For example, I do manual backups only to an external hard drive. Plug it in, do the backup, unplug it until next time.

The backups run fine but it never tells me when the operation is finished. I'll get a message saying it's running in the background but that's it. The only way I know it's done is when I see the hard drive activity light stop blinking.

I'm use to windows telling me something is finished. Is there an easier way in ubuntu?

Thanks!

quelx
May 24th, 2008, 12:45 AM
I don't know of a completely elegant method, but if you open a terminal ALT-F2 > gnome-terminal

then type
top you can see the process (gzip and/or sbackupd) at the... top while the backup is running. When it's finished they will go away.

Chimmer
May 24th, 2008, 01:34 AM
That'll work...thanks!

sdennie
May 24th, 2008, 09:14 AM
You could also type the following:



while ps ax | grep THE_PID_OF_THE_BACKUP | grep -v grep > /dev/null ; do sleep 1; done ; echo "It's finished"


If you take the process ID that sbackup gives you when you hit "Backup Now!", changing THE_PID_OF_THE_BACKUP to the the number it tells you, it will print "It's finished" when the backup is done.

Chimmer
May 24th, 2008, 01:29 PM
You could also type the following:



while ps ax | grep THE_PID_OF_THE_BACKUP | grep -v grep > /dev/null ; do sleep 1; done ; echo "It's finished"


If you take the process ID that sbackup gives you when you hit "Backup Now!", changing THE_PID_OF_THE_BACKUP to the the number it tells you, it will print "It's finished" when the backup is done.

Thanks...I'll try that one also!