Backup in a single command line
If you want to do a simple backup of a directory, and also to send the archive over ssh on another machine, here is the useful command:
# tar czvf - /usr/local/etc/www/data | ssh user@192.168.1.1 "cat > www.tar.gz"
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.














Comments
No comments yet.
Leave a comment