Created
February 5, 2022 05:01
-
-
Save rdeprera/f4f9b113bfea23bcc5bdb46b32fae8b5 to your computer and use it in GitHub Desktop.
Backup de website em tarball
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
#!/usr/bin/env sh | |
# Compactado | |
tar \ | |
-pzcvf \ | |
backup-site.tar.gz \ | |
--exclude=".DS_Store" \ | |
--exclude="*-BKP-*" \ | |
--exclude="*.BKP*" \ | |
--exclude="*BKP.*" \ | |
--exclude="*BACKUP*" \ | |
--exclude=".ftpquota" \ | |
--exclude=".ftpquota" \ | |
--exclude="composer.lock" \ | |
--exclude="Thumbs.db" \ | |
--exclude-tag-under="log" \ | |
--exclude-tag-under="logs" \ | |
--exclude-caches-all \ | |
--exclude-vcs-ignores \ | |
--exclude-vcs \ | |
--exclude-backups \ | |
/var/www/html/site/ \ | |
/etc/apache2/apache2.conf \ | |
/etc/apache2/sites-enabled/site.conf \ | |
/etc/mysql/site \ | |
/etc/php<versao>/fpm/php.ini \ | |
/var/lib/mysql/ \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment