inputkan di crontab -e
5 8 * * 0 /bin/tar -zcvf /share/FTP/owncloud/owncloudv10_`date +"%Y%m%d"`.tar.gz /share/CACHEDEV5_DATA/.qpkg/owncloudv10
config owncloud ada di
https://wiki.qnap.com/wiki/OwnCloud
/share/CACHEDEV5_DATA/.qpkg/owncloud/
/share/CACHEDEV2_DATA/.qpkg
/share/2053/owncloudbackup
cara backup
1. pindah ke folder /share/CACHEDEV2_DATA/.qpkg/
#command cd /share/CACHEDEV2_DATA/.qpkg/
2. copy bungkus file di owncloud10 menjadi owncloud10.tar.gz
#command tar -zcvf owncloudv10.tar.gz owncloudv10
3. file owncloud10.tar.gz di pindahkan ke folder lain contoh = /share/2053/owncloudbackup
# mv owncloud10.tar.gz ke /share/2053/owncloudbackup/
3. cari sqlite database
#command find / -name sqlite3
#contoh ditemukan /share/CACHEDEV2_DATA/.qpkg/container-station/usr/bin/sqlite3
4. masih difolder / posisi yang sama /share/CACHEDEV2_DATA/.qpkg/owncloud10/ cara cek
#command pwd ( apakah sudh sesuai ? )
5. ketikan command backup
#command sqlite3 data/owncloud.db .dump > owncloud-dbbackup_`date +"%Y%m%d"`.bak
6. pindahkan ke folder lain contoh = /share/2053/owncloudbackup
# mv owncloud-dbbackup_20200116.bak /share/2053/owncloudbackup
7. verifikasi data di folder lain contoh = /share/2053/owncloudbackup
#command cd /share/2053/owncloudbackup/
#command ls maka yang terlihat
[/share/2053/owncloudbackup] # ls
owncloud-dbbackup_20200116.bak owncloudv10.tar.gz
[/share/2053/owncloudbackup] #
cara restore
referensi = https://doc.owncloud.org/server/9.0/admin_manual/maintenance/restore.html
1. stop owncloud di appmanager qnap
2. lalu pindah folder di /share/CACHEDEV1_DATA/.qpkg
#command mv owncloudv10 owncloudv10.backup/
3. lalu pindah dan extract file dari /share/2053/owncloudbackup ke /share/CACHEDEV1_DATA/.qpkg/
#command mv /share/2053/owncloudbackup/owncloudv10.tar.gz /share/CACHEDEV1_DATA/.qpkg/
#command tar -zxvf /share/2053/owncloudbackup/owncloudv10.tar.gz
4. lalu start owncloud di appmanager qnap
No comments:
Post a Comment