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:36] admingeneric_linux_commands [2023/03/27 22:48] (current) – [TAR WITH EXCLUDE] admin
Line 8: Line 8:
  
 ===== RUN COMMAND AS ANOTHER USER ===== ===== RUN COMMAND AS ANOTHER USER =====
 +<code>
 # sudo -u zabbix /app/wcms/bin/webmonitor homepage_nocache # sudo -u zabbix /app/wcms/bin/webmonitor homepage_nocache
 </code> </code>
Line 64: 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>
Line 126: Line 131:
 # tar -x ecu_3_28_5/data/private/conf/* -vzf ecu_3_28_5-2011-08-11_11-23-backup.tar.gz # tar -x ecu_3_28_5/data/private/conf/* -vzf ecu_3_28_5-2011-08-11_11-23-backup.tar.gz
 # tar -x ecu_3_28_5/core/lib/web/images/icons/asset_map/matrix_logo.gif -vzf ecu_3_28_5-2011-08-11_11-23-backup.tar.gz # tar -x ecu_3_28_5/core/lib/web/images/icons/asset_map/matrix_logo.gif -vzf ecu_3_28_5-2011-08-11_11-23-backup.tar.gz
 +</code>
 +
  
 +===== Source =====
 +commands.txt on Seagate 3TB (H:\Personal\BAK\WHD71610013\Documents\Documentation\commands.txt)
  
  • generic_linux_commands.1674020167.txt.gz
  • Last modified: 2023/01/18 13:36
  • by admin