moin, na in dem Verzeichnis "/var/spool/cron/crontabs/ "
da taucht "root" auf, sonst nix..aber 4.x ist Buster,5.x ist Bullseye..liegt vielleicht daran
Moderator: Ulrich
moin, na in dem Verzeichnis "/var/spool/cron/crontabs/ "
Hi andreas_n,
Hallo,RO-Smart hat geschrieben: ↑Di 11. Jul 2023, 16:11Hi andreas_n,
Dank mr.big habe ich mich jetzt mal ein wenig mehr in die crontab story eingelesen. In dem spool Verzeichnis liegen die "user"-crontabs, wenn Du keine mittels "crontab -e" angelegt hast halt keine. Die globale liegt unter /etc (die ich aber noch ... nicht zum Laufen bringe). Die "root" läuft bei mir und das genügt fürs erste mal, ich bleib aber an der globalen dran.
Code: Alles auswählen
--- RBK0009I: solaranzeige: raspiBackup.sh V0.6.8 - 2023-08-22 (7c4a713) So 1. Okt 01:00:02 CEST 2023 gestartet.
--- RBK0031I: Prüfe ob eine neue Version von raspiBackup.sh verfügbar ist.
--- RBK0168I: :-D raspiBackup.sh Beta Version 0.6.9 ist verfügbar. Hilfe beim Testen dieser Beta ist sehr willkommen. Einfach auf die neue Beta Version mit der Option -U upgraden. Die vorhergehende Version kann mit der Option -V wiederhergestellt werden
--- RBK0114I: Besuche https://www.linux-tips-and-tricks.de/de/versionshistorie/ um die Änderungen in der neuen Version kennenzulernen.
--- RBK0151I: Backuppfad /backup mit Partitionstyp wird benutzt.
??? RBK0027E: Kein externes Gerät an /backup verbunden. Die root Partition würde für das Backup benutzt werden.
--- RBK0033I: Bitte warten bis aufgeräumt wurde.
--- RBK0043I: Unvollständiges Backup in /backup/solaranzeige/solaranzeige-rsync-backup-20231001-010001 wird gelöscht. Das kann etwas dauern. Bitte Geduld.
??? RBK0005E: Backup fehlerhaft beendet. Siehe vorhergehende Fehlermeldungen.
--- RBK0010I: solaranzeige: raspiBackup.sh V0.6.8 - 2023-08-22 (7c4a713) So 1. Okt 01:00:09 CEST 2023 beendet mit Returncode 102.
--- RBK0026I: Debug Logdatei wurde in /root/raspiBackup.log gesichert.
Code: Alles auswählen
/dev/sda2 on / type ext4 (rw,noatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1677960k,nr_inodes=419490,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=776876k,nr_inodes=819200,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
192.168.6.190:/volume1/Datenspeicher_1/backups/Solaranzeige on /backup type nfs (rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.6.190,mountvers=3,mountport=892,mountproto=udp,local_lock=none,addr=192.168.6.190)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=388436k,nr_inodes=97109,mode=700,uid=1000,gid=1000)
tmpfs on /run/user/113 type tmpfs (rw,nosuid,nodev,relatime,size=388436k,nr_inodes=97109,mode=700,uid=113,gid=117)
gvfsd-fuse on /run/user/113/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=113,group_id=117)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=388436k,nr_inodes=97109,mode=700)
ich nutze dd - den letzten Punkt der Auswahl.Icebox82 hat geschrieben: ↑Mi 10. Jan 2024, 15:50So, ich habe die Einrichtung usw erstmal soweit hinbekommen. Hätte aber da aber noch ne Frage: welchen Sicherungstyp nutzt ihr bzw was ist zu empfehlen? Ich hab ne 256er SSD am Pi hängen auf der die Solaranzeige läuft falls das irgendwofür entscheident ist.
Code: Alles auswählen
bash backup.sh
Code: Alles auswählen
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; }
47 6 * * 7 root test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.weekly; }
52 6 1 * * root test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.monthly; }
53 * 1 * * * root bash /home/pi/scripts/Backup/backup.sh
#
Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste