sunburnt
Group: Members
Posts: 30
Joined: Feb. 2005 |
|
Posted: Feb. 19 2005,00:02 |
|
I also noticed /cdrom IS /mnt/sda1, odd but if it ALWAYS reflects the device DSL is on, it could be backup dev. for writable drives. I mount and write files to sda1 manually in DSL, so it`s writable as su. I know very little about writing script, maybe something like:
#!/bin/bash # Script for Backup of DSL settings
echo -n "${BLUE}Backing up files to: /cdrom ${NORMAL}" sudo tar -C / -T /mnt/ramdisk/home/dsl/filetool.lst --exclude=Cache -czf /cdrom/backup.tar.gz echo "${BLUE}Done.${NORMAL}" exit 0
I took this code from Robert Shingledecker`s code & altered it. I`m not sure how much of filetool.sh is required to be reliable. The source & destination are hard coded, so no arguments. I think the very first line`s needed for script to function, duh? If ANYONE has any thoughts, suggestions, etc., PLEASE feel free!!!
|