Created
July 21, 2015 12:26
-
-
Save akrzos/d45fd5e5085c78fbe646 to your computer and use it in GitHub Desktop.
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
export BDIR=/home/backup/last-clean | |
mkdir -p $BDIR | |
chmod 770 $BDIR | |
cd $BDIR | |
service httpd stop | |
service pulp_celerybeat stop | |
service pulp_resource_manager stop | |
service pulp_workers stop | |
service qpidd stop | |
service qdrouterd stop | |
service goferd stop | |
service foreman-proxy stop | |
service mongod stop | |
sync; sync; echo 3 > /proc/sys/vm/drop_caches | |
tar --selinux -cvf pulp_data.tar /var/lib/pulp /var/www/pub | |
service mongod start | |
sleep 5 | |
mongodump --host localhost --out $BDIR/mongo_dump | |
df -h >> $BDIR/df-h | |
df >> $BDIR/df | |
service foreman-proxy start | |
service goferd start | |
service qdrouterd start | |
service qpidd start | |
service pulp_workers start | |
service pulp_resource_manager start | |
service pulp_celerybeat start | |
service httpd start | |
cd ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment