diff --git a/backups.service b/backups.service new file mode 100644 index 0000000..7638947 --- /dev/null +++ b/backups.service @@ -0,0 +1,8 @@ +[Unit] +Description=Copy files from Gliese 180 a to Gliese 180 b +After=local-fs.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/rsync -a "/mnt/Gliese 180 a/" "/mnt/Gliese 180 b/" +User=shoofle diff --git a/backups.timer b/backups.timer new file mode 100644 index 0000000..8f8a13d --- /dev/null +++ b/backups.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Timer for running the backup script (nightly) + +[Timer] +OnCalendar=*-*-* 00:00:00 +AccuracySec=1m +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/cygnus.service b/cygnus.service index df87a7f..1253958 100644 --- a/cygnus.service +++ b/cygnus.service @@ -6,6 +6,3 @@ Type=oneshot WorkingDirectory = /home/shoofle/cygnus ExecStart=python /home/shoofle/cygnus/update_fortune.py User=shoofle - -[Install] -WantedBy=multi-user.target diff --git a/work_log b/work_log index cc603d5..7313a08 100644 --- a/work_log +++ b/work_log @@ -37,3 +37,7 @@ installed yt-dl (through apt) and then yt-dlp because yt-dl didn't work https:// symlinked the ssh tunnel service into /etc/systemd/system/ so that i get an always-on ssh tunnel!!! finally realized i never did `systemctl enable cygnus.timer --now` so the timer never started which is why my daily task hasn't been running. remedied. + +installed mlocate so i can search for things + +gotta make it so that it rsyncs things regularly. hrm. apparently that's `rsync -av "/so/urce" "/desti/nation"`. added a backups.service and backups.timer that should be good enough for this purpose. let's try it. gonna ln -s them into /etc/systemd/system