[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Seeking Wisdom Concerning Backups



Owen Townend wrote:


On 2/29/08, *Kent West* <westk@acu.edu <mailto:westk@acu.edu>> wrote:

    I have a small server on which I need to backup the /home partition.

    I have a Barracuda Terastation Pro backup server sitting right next to
    it, connected via Ethernet.

    I don't need anything fancy; just simple and reliable.


Hey,
If all is working except for the 2GB file limit (documented or otherwise) you can just use 'split' to break the archive into smaller parts:
eg:
  `split -b 2000m backup.tar.gz backup.tar.gz.`
or pipe tar straight to it:
   `tar ${your-args} | split -b 2000m - backup.tar.gz.`

  You can then join them by using 'cat':
  `cat backup.tar.gz.* > backup.tar.gz`

This sounds very promising, but I can't seem to wrap my brain around the syntax required. I just tried this command:

sudo tar -cvzf /TERASTATIONBACKUP/2008Feb29.tgz /home | split -b 2000m - 2008Feb29.tgz

and almost immediately got an "no drive space left" error. Then looking at "df -h", I see that my smallish / partition (463MB) is full, so I've got to see what's eating up that space (I think it's because a new kernel was automagically installed - somehow or 'nuther it seems when I installed Debian on this box the default install installed whatever kernel package automatically pulls in the latest version of that kernel rather than leaving it fixed until I specifically specify an upgrade. I'm not quite sure how to "fix" that. And I don't really want to have to reboot yet to activate the newest .point upgrade so I can remove the older one taking up disk space. I should've made my / partition twice as large as I did, I reckon.)

The /TERASTATIONBACKUP is a mount-point that Samba mounts the TeraStation Pro's SMB share. I'm trying to create a file named "2008Feb29.tgz" on that share, containing the tarred/split contents of /home. Have I used the correct syntax for what I'm trying to accomplish?

Thanks!

--
Kent


Reply to: