generic_linux_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
generic_linux_commands [2023/01/18 13:51] admingeneric_linux_commands [2023/03/27 22:48] (current) – [TAR WITH EXCLUDE] admin
Line 65: Line 65:
 ===== TAR WITH EXCLUDE ===== ===== TAR WITH EXCLUDE =====
 <code> <code>
 +cd /var/lib/docker/volumes/
 +tar --exclude='fw_stack_postgres-data/_data/backups/*.gz' -cvzf fw_stack_postgres-data_`date +%Y-%m-%dT%H-%M-%S`.tgz fw_stack_postgres-data/
 +rsync -av *.tgz /workspace/backups.kargath/volumes/
 +
 $ tar cvzf filename.tar.gz /dir1/dir2 --exclude "/dir1/dir2/direxcluded" $ tar cvzf filename.tar.gz /dir1/dir2 --exclude "/dir1/dir2/direxcluded"
 </code> </code>
  • generic_linux_commands.1674021119.txt.gz
  • Last modified: 2023/01/18 13:51
  • by admin