[Pkg-owncloud-commits] [owncloud-doc] 03/18: Commands changed to backup.rst
David Prévot
taffit at moszumanska.debian.org
Wed Nov 20 20:35:20 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch dfsg_clean
in repository owncloud-doc.
commit 53ad66ebacc9d4a7a6fc7032519e2e95c87bd265
Author: Francesco Frassinelli <fraph24 at gmail.com>
Date: Fri Nov 15 15:19:18 2013 +0100
Commands changed to backup.rst
backup.rst improved with code coming from previous version of update.rst. Every backup now as a date. rsync preserves ACLs, extended attributes (like SELinux attributes).
---
admin_manual/maintenance/backup.rst | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/admin_manual/maintenance/backup.rst b/admin_manual/maintenance/backup.rst
index c499570..0eadc8a 100644
--- a/admin_manual/maintenance/backup.rst
+++ b/admin_manual/maintenance/backup.rst
@@ -5,20 +5,14 @@ To backup an ownCloud installation there are three main things you need to retai
#. The config folder
#. The data folder
-#. The database (found in the data folder for sqlite installs)
-
-To restore an ownCloud instance:
-
-#. Extract ownCloud to your webserver
-#. Copy over your config folder with your backed up config folder
-#. Copy over your data folder with your backed up data folder
-#. Import your database
-#. Update config.php of any changes to your database connection
+#. The database
Backup Folders
------
-Simply copy your config and data folder(or even your whole ownCloud install and data folder) to a place outside of your ownCloud environment.
+Simply copy your config and data folder (or even your whole ownCloud install and data folder) to a place outside of your ownCloud environment. You could use this command:
+
+ rsync -Aax owncloud/ owncloud-dirbkp_`date +"%Y%m%d"`/
Backup Database
------
@@ -28,14 +22,14 @@ MySQL
MySQL is the recommended database engine. To backup MySQL:
- mysqldump --lock-tables -u [username] -p[password] > owncloud.sql
+ mysqldump --lock-tables -h [server] -u [username] > owncloud-sqlbkp_`date +"%Y%m%d"`.bak
SQLite
^^^^^
- sqlite3 owncloud.db .dump > owncloud.bak
+ sqlite3 data/owncloud.db .dump > owncloud-sqlbkp_`date +"%Y%m%d"`.bak
PostgreSQL
^^^^^
- pg_dump owncloud > owncloud.bak
+ pg_dump owncloud -h [server] -U [username] -f owncloud-sqlbkp_`date +"%Y%m%d"`.bak
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git
More information about the Pkg-owncloud-commits
mailing list