Archiving files in a directory - tar command
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.
find . -type f | xargs -d "\n" tar -czvf backup.tar.gz
0 comments: