Differences between version 4 and previous revision of MultipleTarVolumes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Tuesday, October 14, 2003 10:04:55 am | by MichaelBordignon | Revert |
Older page: | version 3 | Last edited on Tuesday, October 14, 2003 10:04:25 am | by MichaelBordignon | Revert |
@@ -13,11 +13,11 @@
Here is my crackin bash script to backup stuff into 1gig volumes:
#!/bin/bash
- cd /var
/www
/
+ cd /test
/archive
/
each_archivesize=1000000
totalkbytes=`du -s . | cut -d "." -f 1`
num_volumes=`expr $totalkbytes / $each_archivesize + 1`
- tar_args=`for i in $(seq 1 $num_volumes) ; do echo -n "-f varwww
$i.tar "; done`
+ tar_args=`for i in $(seq 1 $num_volumes) ; do echo -n "-f archive
$i.tar "; done`
tar -cvL $each_archivesize $tar_args --totals *