Created
April 26, 2021 22:31
-
-
Save kerasai/94ab5ba0f42a67e1f5f35287c92c50e8 to your computer and use it in GitHub Desktop.
TAR Files Backup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Run from /sites/default, etc. | |
tar \ | |
--exclude='files/private/backup_migrate'\ | |
--exclude='files/css' \ | |
--exclude='files/js' \ | |
--exclude='files/styles' \ | |
-zcvf files.tar.gz files/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment