Other Help Topics :: Backup without compression ?



Is there a way to backup.tar.gz without compression ?
(it could save some shutdown time).

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.

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!

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.

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?

Next Page...
original here.