View Single Post
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#615
Originally Posted by sethkha View Post
What do you think about saving home and opt separately?
*edit* I misread.

I thought you meant specify opt and rootfs separately.

Opt lives in /home; I could specify /home/opt explicitly, but I'm not sure if it would have other consequences. Are you looking to be able to exclude your personal preferences in a restore, or restore only your prefs?

Here's my original reply:

Updated script attached.

Code:
5 root@glamb-n900 [~]# ./backup.sh 
./backup.sh: error: no target specified.
Usage: ./backup.sh <sd|internal> [-rootonly|-homeonly]
The default mode is specified on lines 14-15:

Code:
# Include both home and rootfs?
doHome=1
doRoot=1
Excuse the ugly syntax (options must follow backup target).. I probably should have written this script in perl and getopt, but I didn't really expect it to take on a life of its own.

If people start to use it and Robbie doesn't have his own online backup script I could rewrite this one to implement features like scheduling, or possibly a UI.
Attached Files
File Type: gz backup.tar.gz (1.2 KB, 123 views)

Last edited by nightfire; 2011-02-23 at 20:35.