snapshot of home

Rashkae ubuntu at tigershaunt.com
Sun Jan 29 06:04:12 UTC 2012


On 01/29/2012 12:26 AM, Thufir Hawat wrote:
> On Sat, 28 Jan 2012 20:57:49 -0500, Rashkae wrote:
>
>
>> mkdir /tmp/backup-home
>> cd
>> tar -cj . | split -b 4.2G - /tmp/backup-home/backup.tar.bz.
>>
>> When finished, you should have a bunch of backup files in the
>> /tmp/backup-home folder.
>
> Ah, interesting, just tar.   That would work fine I think.  Will that
> split a file in half?  To put it all back together, do I need all discs?
>
>
> -Thufir
>
>

That will split the file in as many pieces as needed so each file is the 
size specified (4.2G in my example).  Yes, you would probably need all 
disks restore.  (A partial tar archive can have the files contained 
within extracted, but in my example, I'm using bzip compression as well.)

If you wanted to restore the archive, you could copy all the files to 
the same directory, and use the command:

cat backup.tar.bz* | tar -xj

It is possible to restore directly off the cd/DVD's using fifo to feed 
each cd into tar one at a time, but it's a bit of a pain in the ass, and 
hard drive space is rarely that limited to be worth it.






More information about the ubuntu-users mailing list