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
generic_linux_commands [2023/03/27 22:47] – [TAR WITH EXCLUDE] admingeneric_linux_commands [2023/03/27 22:48] (current) – [TAR WITH EXCLUDE] admin
Line 67: Line 67:
 cd /var/lib/docker/volumes/ 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/ 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.1679928477.txt.gz
  • Last modified: 2023/03/27 22:47
  • by admin