.evan
October 7th, 2007, 03:43 PM
I'm working on a backup script and want to break up the tar file into smaller chunks. I've tried working out how to exclude directories from the tar process and it does not work (I've seen many others on forums with the same problem) and tarring my entire home directory fails with an error telling me that the tar file size limitation has been met.
So, I'm thinking that it would be cool to loop through every directory in my home path, get the name of the directory, and then tar/bzip2 that directory - using its name as the name of the .bz2 file.
can someone give me a few hints?
how to get the name of each directory...
how to loop through each directory in current working directory...
Thanks!
http://www.hobbylobby.wordpress.com/
So, I'm thinking that it would be cool to loop through every directory in my home path, get the name of the directory, and then tar/bzip2 that directory - using its name as the name of the .bz2 file.
can someone give me a few hints?
how to get the name of each directory...
how to loop through each directory in current working directory...
Thanks!
http://www.hobbylobby.wordpress.com/