...
Code Block |
---|
#NOTE: doesnt matter the .env NEW$ cd /opt/myaegeeMyAEGEE NEW$ make start NEW$ docker rm $(docker stop $(docker ps -aq)) |
Setup: trying the backups of the nightly on the new one
Code Block |
---|
skipped |
Migration: stop on OLD
Code Block |
---|
Backup: pictures (with basically a restore because we started the setup first)
Code Block |
---|
OLD$ sudo scp -i /home/grasshopper/.ssh/id_rsa -Rr /var/lib/docker/volumes/myaegee_events-media/ prod:/home/grasshopper/myaegee_events-media NEW$ sudo cp -R /home/grasshopper/myaegee_events-media/ /var/lib/docker/volumes/myaegee_events-media/ OLD$ sudo scp -Ri /home/grasshopper/.ssh/id_rsa -r /var/lib/docker/volumes/myaegee_statutory-media/ prod:/home/grasshopper/myaegee_statutory-media NEW$ sudo cp -R /home/grasshopper/myaegee_statutory-media/ /var/lib/docker/volumes/myaegee_statutory-media/ OLD$ sudo scp -i /home/grasshopper/.ssh/id_rsa -Rr /var/lib/docker/volumes/myaegee_summeruniversity-media/ prod:/home/grasshopper/myaegee_summeruniversity-media NEW$ sudo cp -R /home/grasshopper/myaegee_summeruniversity-media/ /var/lib/docker/volumes/myaegee_summeruniversity-media/ |
Backup: things
Code Block |
---|
OLD$LOCAL$ scp my.aegee.eu:/opt/myaegeeMyAEGEE/.env prod:/opt/myaegeeMyAEGEE/.env |
Backup: databases
Code Block |
---|
OLD$ cd /opt/myaegeeMyAEGEE OLD$ make backup OLD$ scp -R IDKr /opt/backups/backup-2024-04-27_1033.tgz prod:IDK/opt/backups/ |
Restore: databases
Code Block |
---|
NEW$ cd /opt/myaegeeMyAEGEE NEW$ vim scripts-server/restore.sh # To edit the DB names NEW$ #make sure the folders are in the proper place NEW$ ./scripts-server/restore.sh |
...