Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: DSL based BACKUP/RESTORE solution, using 2 DSL installs or a remastered CD< Next Oldest | Next Newest >
CyberCod Offline





Group: Members
Posts: 25
Joined: Feb. 2007
Posted: Aug. 12 2007,16:05 QUOTE

Wow, 800 views.  Glad to see this is getting some use!

If anyone has any further customizations, feel free to add them in here.
Back to top
Profile PM 
infinitycircuit Offline





Group: Members
Posts: 18
Joined: May 2007
Posted: Aug. 12 2007,16:31 QUOTE

This is a very interesting script!

One thing to suggest is that in Option 3, you mention that backing up at this point will not allow you to use the fluxbox menu icon to backup.  You could add in an option to use sed to remove the line that starts the backup from ~/.fluxbox/menu, if it exists.  For example:

Code Sample

BACKUP_MENU_ENTRY=`grep "BACKUP SYSTEM" /hda1/home/dsl/.fluxbox/menu`
sed -e 's/"$BACKUP_MENU_ENTRY"//'


I'm not a very proficient coder so this might not work/this might cause other problems, but I think it will work.

Similarly, you could add the option to exclude certain files from the backup.  For instance, a user might not want to back up their videos.  You could do this by replacing the tar command with:

Code Sample

find /hda1 > /tmp/files_to_backup.lst
echo "Please enter each file or folder you don't wish to backup on a separate line, ending with "EOF"."
cat << EOF > /tmp/files_to_avoid.lst
tar -C /hda1 -T /tmp/files_to_backup.lst -X /tmp/files_to_avoid.lst zxvpsf hda3/hda1backup.tar.gz


Those are some simple (maybe erroneous) suggestions that I think might help the script.
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Aug. 14 2007,07:41 QUOTE

At the top of the script:

sudo cp /boot/grub/menu.lst_backupmode /boot/grub/menu.lst

Where were _backupmode files created?
Back to top
Profile PM 
CyberCod Offline





Group: Members
Posts: 25
Joined: Feb. 2007
Posted: Sep. 07 2007,23:52 QUOTE

Quote (jpeters @ Aug. 14 2007,03:41)
At the top of the script:

sudo cp /boot/grub/menu.lst_backupmode /boot/grub/menu.lst

Where were _backupmode files created?

If memory serves, those files were kept in the /boot/grub folder of the first installation.  the point being that grub is pointed to /boot/grub/menu.lst on hda1.

menu.lst_backupmode is a modified copy of menu.lst that puts the 2nd install as the first boot option in the grub menu.
Back to top
Profile PM 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Sep. 08 2007,05:03 QUOTE

Quote (CyberCod @ Sep. 07 2007,19:52)
If memory serves, those files were kept in the /boot/grub folder of the first installation

menu.lst_backupmode is a modified copy of menu.lst that puts the 2nd install as the first boot option in the grub menu.

There aren't any menu.lst_backupmode files in any of my grub installations.
Back to top
Profile PM 
13 replies since Mar. 31 2007,15:24 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: DSL based BACKUP/RESTORE solution

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code