Backup Seafile: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 4: | Zeile 4: | ||
<pre> | <pre> | ||
mysqldump -u root -p<password> seafile-db > /media/cloud_backup/seafile/seafile-db_latest.sql | 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>] 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 | mysqldump -u root -p[<password>] ccnet-db > /media/cloud_backup/seafile/ccnet-db_latest.sql | ||
</pre> | </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