What you can back up a OwnCloud Backup
A OwnCloud Backup is done quickly, because you only need to secure three things:
- the config folder
- the data folder
- the database

So you make an OwnCloud Backup
With an OwnCloud Backup, folder backup
- You will have to copy the folders config and data and save them outside of the OwnCloud environment.
- Alternatively, you can also just copy the entire OwnCloud install and data folder.
- For that, you can also use this command: rsync -Aax owncloud/ owncloud-dirbkp_`date +"%Y%m%d"`/
Backup of the OwnCloud-create database
- MySQL is the recommended database Engine. To secure MySQL, use this command: mysqldump --lock-tables -h [server] -u [username] -p[password] [db_name] > owncloud-sqlbkp_`date +"%Y%m%d"`.bak
- If you use SQLite, use this command: sqlite3 data/owncloud.db .dump > owncloud-sqlbkp_`date +"%Y%m%d"`.bak
- For PostgreSQL, use this command: PGPASSWORD="password" pg_dump owncloud -h [server] -U [username] -f owncloud-sqlbkp_`date +"%Y%m%d"`.bak
Video-tip: The legal hurdles of Cloud Computing
In the next article we will explain to you how your OwnCloud Admin password reset.
