Search found 7 matches

by Lycidias
Sat Oct 31, 2020 9:44 pm
Forum: Troubleshooting
Topic: Backup script in cron.daily
Replies: 15
Views: 610

Re: Backup script in cron.daily

Thank you very much :-) My external hdd1 is formatted in ext4. How can i copy the files to a ntfs formatted Computer or hdd? I tried it but there were symlink/permission errors or to many files to copy or the Filesystem does Not Support something. Another question: on raspbian it was possible to bac...
by Lycidias
Fri Oct 30, 2020 9:26 pm
Forum: Troubleshooting
Topic: Backup script in cron.daily
Replies: 15
Views: 610

Re: Backup script in cron.daily

Great idea, thanks :) #!/bin/bash # mv /mnt/hdd1/backup/dietpi-backup_4 "/mnt/hdd1/backup/dietpi-backup" mv /mnt/hdd1/backup/dietpi-backup_3 "/mnt/hdd1/backup/dietpi-backup_4" mv /mnt/hdd1/backup/dietpi-backup_2 "/mnt/hdd1/backup/dietpi-backup_3" cp /mnt/hdd1/backup/die...
by Lycidias
Thu Oct 29, 2020 5:27 pm
Forum: Troubleshooting
Topic: Backup script in cron.daily
Replies: 15
Views: 610

Re: Backup script in cron.daily

If you want to keep cron running through DietPi updates/installs/backups and such, hence exclude it from DietPi control, enable it to be started by systemd instead: systemctl enable --now cron But while there are cases where servers/services need to run while you still want to install something, cr...
by Lycidias
Tue Oct 27, 2020 11:59 am
Forum: Troubleshooting
Topic: Backup script in cron.daily
Replies: 15
Views: 610

Re: Backup script in cron.daily

Joulinar wrote: Tue Oct 27, 2020 10:14 am ah ok, the cron.service was not started, right?
Exactly, i think so :-D
by Lycidias
Tue Oct 27, 2020 1:17 am
Forum: Troubleshooting
Topic: Backup script in cron.daily
Replies: 15
Views: 610

Re: Backup script in cron.daily

I think i found the issue... I excluded cron service from dietpi autocontrol... :roll: :lol:

The Script is now executed daily. Many Thanks! :-)
by Lycidias
Mon Oct 26, 2020 1:10 pm
Forum: Troubleshooting
Topic: Backup script in cron.daily
Replies: 15
Views: 610

Re: Backup script in cron.daily

Thank you very much. root@xxx:~# run-parts --test /etc/cron.daily/ /etc/cron.daily//apt-compat /etc/cron.daily//backup /etc/cron.daily//dietpi /etc/cron.daily//dpkg /etc/cron.daily//passwd /etc/cron.daily//samba root@xxx:~# Seems like it should work. But the backup was not created last night. When i...
by Lycidias
Mon Oct 26, 2020 11:13 am
Forum: Troubleshooting
Topic: Backup script in cron.daily
Replies: 15
Views: 610

Backup script in cron.daily

Hello, I created a backup Script on my raspberry pi 4 and placed it in /etc/cron.daily and named it "backup". I also Set the cron.daily runtime. But the Script won't run. When i Start it via terminal it just works. Can you help me? Thank you very much :) The permissions i set: -rwxr-xr-x 1...