„README.md“ ändern
This commit is contained in:
parent
4f9cac8a28
commit
7ce24a8d5e
13
README.md
13
README.md
|
@ -1,6 +1,8 @@
|
||||||
# qnap
|
# qnap
|
||||||
|
|
||||||
## rsync
|
## cronjob
|
||||||
|
Allgmeines über cronjobs hier: https://git.bmen.cc/server/server-befehle
|
||||||
|
|
||||||
**Do NOT edit crontab the usual way!** `crontab -e`
|
**Do NOT edit crontab the usual way!** `crontab -e`
|
||||||
|
|
||||||
However, due to the way the QNAP firmware updates crontab, it will be overwritten on the next reboot. Obviously, you want your automation to survive reboots, so edit the crontab file directly with your text editor:
|
However, due to the way the QNAP firmware updates crontab, it will be overwritten on the next reboot. Obviously, you want your automation to survive reboots, so edit the crontab file directly with your text editor:
|
||||||
|
@ -11,4 +13,11 @@ When you're done, reload the crontab file and restart the cron daemon:
|
||||||
```
|
```
|
||||||
crontab /etc/config/crontab && /etc/init.d/crond.sh restart
|
crontab /etc/config/crontab && /etc/init.d/crond.sh restart
|
||||||
```
|
```
|
||||||
https://wiki.qnap.com/wiki/Add_items_to_crontab
|
https://wiki.qnap.com/wiki/Add_items_to_crontab
|
||||||
|
|
||||||
|
## rsync
|
||||||
|
|
||||||
|
### Nextcloud Daten aus Hetzner Storage
|
||||||
|
```
|
||||||
|
rsync -trl --delete --partial -e 'ssh -p23' --exclude 'user1/files_trashbin/*' --exclude 'user2/files_trashbin/*' <Benutzername>@<Benutzername>.your-storagebox.de:<Verzeichnis> /share/Nextcloud
|
||||||
|
```
|
Loading…
Reference in New Issue