home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix.
[config]
/
buster
/
setup_scripts
/
migrate_pleroma.sh
diff --git
a/buster/setup_scripts/migrate_pleroma.sh
b/buster/setup_scripts/migrate_pleroma.sh
index bff98722e2944f0503cb7070dab55439a411158d..a7cd6e76f44335e161d71468bfe50b1637a30f9d 100755
(executable)
--- a/
buster/setup_scripts/migrate_pleroma.sh
+++ b/
buster/setup_scripts/migrate_pleroma.sh
@@
-11,10
+11,11
@@
server_ip="$1"
config_tree_prefix="${HOME}/config/buster"
setup_scripts_dir="${config_tree_prefix}/setup_scripts"
config_tree_prefix="${HOME}/config/buster"
setup_scripts_dir="${config_tree_prefix}/setup_scripts"
+
cd "${setup_scripts_dir}"
./prepare_to_meet_server.sh "${server_ip}"
cd "${setup_scripts_dir}"
./prepare_to_meet_server.sh "${server_ip}"
+eval $(ssh-agent) && ssh-add
read -p'Hit Enter when you are done.' ignore
read -p'Hit Enter when you are done.' ignore
-ssh plom@"${server_ip}" 'su -lc "cd config && git pull"'
-ssh plom@"${server_ip}" 'su -lc "cd config/buster/setup_scripts && ./backup_pleroma.sh"'
+ssh plom@"${server_ip}" 'su -lc "cd config/buster/setup_scripts && git pull && ./backup_pleroma.sh"'
scp plom@"${server_ip}":~/pleroma_backup.tar /home/plom/pleroma_backup.tar
scp plom@"${server_ip}":~/pleroma_backup.tar /home/plom/pleroma_backup.tar
-./
backup
_pleroma.sh
+./
restore
_pleroma.sh