# Backup Nextcloud with seperate DATA folder and the database?!?!?

**URL:** <https://help.nextcloud.com/t/backup-nextcloud-with-seperate-data-folder-and-the-database/5841>\
**Category:** ℹ️ Support\
**Created:** [December 7, 2016, 9:11am UTC](https://help.nextcloud.com/t/backup-nextcloud-with-seperate-data-folder-and-the-database/5841 "2016-12-07T09:11:19Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![nitr0burger](https://help.nextcloud.com/letter_avatar/nitr0burger/32/6_22734026db12803ebb3e059622ac3534.png) [@nitr0burger](https://help.nextcloud.com/u/nitr0burger)\
**Post date:** [December 9, 2016, 6:52am UTC](https://help.nextcloud.com/t/backup-nextcloud-with-seperate-data-folder-and-the-database/5841/7 "2016-12-09T06:52:42Z")

</div>

Thanks.  
But now I have another two problems:

1. I only can run the “mysqldump”-command as root  
sudo -s  
mysqldump --lock-tables …  
Just to use:  
`sudo mysqldump --lock-...`  
does not work!  
When I add `+%Y%m%d.bak`, I get this error:  
mysqldump: Couldn’t find table: `+%Y%m%d.bak`

2. and my last question from my post above:  
#After I run rsync once, what happens wenn I run the same command again? Does it sync from source to destination?

Thanks again 😃

---

_[View the full topic](https://help.nextcloud.com/t/backup-nextcloud-with-seperate-data-folder-and-the-database/5841)._
