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: (2) </ [1] 2 >/

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

reply to topic new topic new poll
Topic: Backup without compression ?< Next Oldest | Next Newest >
humpty Offline





Group: Members
Posts: 655
Joined: Sep. 2005
Posted: Oct. 10 2007,16:42 QUOTE

Is there a way to backup.tar.gz without compression ?
(it could save some shutdown time).
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Oct. 10 2007,17:09 QUOTE

As an alternative to hacking the backup scripts, you could always backup and restore manually without compression, perhaps automate suitably via bootlocal.sh and powerdown.sh:

Code Sample
# backup (as root)
cd /; tar -T ~/.filetool.lst -cvf /path/to/backup.tar

# restore (as root)
cd /; tar -xvf /path/to/backup.tar



Make sure /path/to is mounted first.
Back to top
Profile PM 
humpty Offline





Group: Members
Posts: 655
Joined: Sep. 2005
Posted: Jan. 03 2008,03:15 QUOTE

thanks WDef, this is blazingly faster now.

Code Sample
# fast_backup
echo backing up..
tar -C / -T /opt/.filetool.lst -X /opt/.xfiletool.lst -cf /mnt/hdc1/backups/mybackup.tar
echo syncing..
sync
echo done

# fast_restore
tar -C / -xf /mnt/hdc1/backups/mybackup.tar


doesn't seem to be a need for root if running from aterm,
though i had to leave out stuff like home/dsl/.fluxbox/menu
(using .xfiletool.lst)

after the sync it's just power-off -great!
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 03 2008,15:21 QUOTE

Use caution with this. I recall when it was discussed to try to determine the size of the backup before writing to the backup device.

Typically the files included in the backup, by design,  are data and not binary. Therefore the size of the backup could increase dramatically. Be aware of the "broken pipe" error, which occurs when you have run out of room on the backup device. The result is that you will lose your backup file.
Back to top
Profile PM WEB 
jpeters Offline





Group: Members
Posts: 804
Joined: April 2006
Posted: Jan. 03 2008,16:09 QUOTE

Quote (humpty @ Jan. 02 2008,22:15)
echo syncing..
sync

Curious how the sync command helps...manual says that it prints from the buffer or something.

Edit:  Looks like a security measure to make sure everything in the buffer gets printed before some unusual shutdown; that's the most I can make out of it, anyway. Would this be recommended as the standard procedure when backing up?
Back to top
Profile PM 
6 replies since Oct. 10 2007,16:42 < Next Oldest | Next Newest >

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

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Backup without compression ?

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