Archiving files in a directory - tar command

Sunday, December 30, 2012 , , 0 Comments

Below is the command for archiving all the files from the current directory.

find . -type f | xargs -d "\n" tar -czvf backup.tar.gz

the above command  also works for files with name containing spaces.

0 comments: