Backup Seafile: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
<pre> | <pre> | ||
sudo cp -R --preserve=mode,timestamps /home/seafile/seafile/ /media/cloud_backup/seafile/ | |||
</pre> | </pre> | ||
<pre> | |||
mysqldump -u root -p[<password>] seafile-db > /media/cloud_backup/seafile/seafile-db_latest.sql | |||
mysqldump -u root -p[<password>] seahub-db > /media/cloud_backup/seafile/seahub-db_latest.sql | |||
mysqldump -u root -p[<password>] ccnet-db > /media/cloud_backup/seafile/ccnet-db_latest.sql | |||
</pre> | |||
<pre> | |||
mysql -u root -p[<password>] seafile-db < /media/cloud_backup/seafile/seafile-db_latest.sql | |||
mysql -u root -p[<password>] seahub-db < /media/cloud_backup/seafile/seahub-db_latest.sql | |||
mysql -u root -p[<password>] ccnet-db < /media/cloud_backup/seafile/ccnet-db_latest.sql | |||
</pre> | |||
Aktuelle Version vom 4. September 2016, 12:12 Uhr
sudo cp -R --preserve=mode,timestamps /home/seafile/seafile/ /media/cloud_backup/seafile/
mysqldump -u root -p[<password>] seafile-db > /media/cloud_backup/seafile/seafile-db_latest.sql mysqldump -u root -p[<password>] seahub-db > /media/cloud_backup/seafile/seahub-db_latest.sql mysqldump -u root -p[<password>] ccnet-db > /media/cloud_backup/seafile/ccnet-db_latest.sql
mysql -u root -p[<password>] seafile-db < /media/cloud_backup/seafile/seafile-db_latest.sql mysql -u root -p[<password>] seahub-db < /media/cloud_backup/seafile/seahub-db_latest.sql mysql -u root -p[<password>] ccnet-db < /media/cloud_backup/seafile/ccnet-db_latest.sql
Links
http://manual.seafile.com/maintain/backup_recovery.html
Zurück zu Backups erstellen