lastns
This commit is contained in:
9
daily.d/lastn_clean.sh
Executable file
9
daily.d/lastn_clean.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
now=$(date +%s)
|
||||
for f in /volume1/video/FTP/2???.??.??.*; do
|
||||
s=$(date -r "$f" +%s)
|
||||
if ((now-s > 60*60*24)); then
|
||||
rm -f "$f"
|
||||
fi
|
||||
done
|
||||
10
daily.d/lastn_core.sh
Executable file
10
daily.d/lastn_core.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
/var/services/homes/squeaky2x3/dev/mnt/home/Go/bin/lastn \
|
||||
-tmp=/volume1/video/FTP \
|
||||
-cmd=backup \
|
||||
-n=14 \
|
||||
-ns=daily \
|
||||
-root=/volume1/video/Bel/sync/Core \
|
||||
-store=files \
|
||||
-storeaddr=/volume1/homes/squeaky2x3/bin/backup/Core
|
||||
10
daily.d/lastn_gitea.sh
Executable file
10
daily.d/lastn_gitea.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
/var/services/homes/squeaky2x3/dev/mnt/home/Go/bin/lastn \
|
||||
-tmp=/volume1/video/FTP \
|
||||
-cmd=backup \
|
||||
-n=14 \
|
||||
-ns=backup-daily \
|
||||
-root=/volume1/homes/squeaky2x3/services_docker/mounts/gitea-mnt \
|
||||
-store=files \
|
||||
-storeaddr=/volume1/homes/squeaky2x3/bin/backup/gitea-mnt
|
||||
10
daily.d/lastn_jellyfin.sh
Executable file
10
daily.d/lastn_jellyfin.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
/var/services/homes/squeaky2x3/dev/mnt/home/Go/bin/lastn \
|
||||
-tmp=/volume1/video/FTP \
|
||||
-cmd=backup \
|
||||
-n=14 \
|
||||
-ns=daily \
|
||||
-root=/volume1/homes/squeaky2x3/services_docker/mounts/jellyfin-mnt \
|
||||
-store=files \
|
||||
-storeaddr=/volume1/homes/squeaky2x3/bin/backup/jellyfin
|
||||
10
daily.d/lastn_ledger.sh
Executable file
10
daily.d/lastn_ledger.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
/var/services/homes/squeaky2x3/dev/mnt/home/Go/bin/lastn \
|
||||
-tmp=/volume1/video/FTP \
|
||||
-cmd=backup \
|
||||
-n=14 \
|
||||
-ns=daily \
|
||||
-root=/volume1/video/Bel/sync/Core/ledger \
|
||||
-store=files \
|
||||
-storeaddr=/volume1/homes/squeaky2x3/bin/backup/ledger
|
||||
10
hourly.d/lastn_ledger.sh
Executable file
10
hourly.d/lastn_ledger.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
/var/services/homes/squeaky2x3/dev/mnt/home/Go/bin/lastn \
|
||||
-tmp=/volume1/video/FTP \
|
||||
-cmd=backup \
|
||||
-n=48 \
|
||||
-ns=hourly \
|
||||
-root=/volume1/video/Bel/sync/Core/ledger \
|
||||
-store=files \
|
||||
-storeaddr=/volume1/homes/squeaky2x3/bin/backup/ledger
|
||||
3
hourly.d/timer.sh
Executable file
3
hourly.d/timer.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
su squeaky2x3 -c 'bash /volume1/homes/squeaky2x3/services/timer.d/timer.sh'
|
||||
4
hourly.d/transmission_trackers.sh
Executable file
4
hourly.d/transmission_trackers.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
cd /volume1/homes/squeaky2x3/bin/transmission_load_trackers.d/
|
||||
su squeaky2x3 -c 'bash ./do.sh'
|
||||
0
minutely.d/drawful.sh
Normal file → Executable file
0
minutely.d/drawful.sh
Normal file → Executable file
@@ -1,5 +1,8 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
sudo bash -c '
|
||||
test -d /nix || ln -h /volume1/nix.3.d /nix
|
||||
if ! [ -d /nix/var ]; then
|
||||
rm -r /nix || true
|
||||
ln -s /volume1/nix.3.d /nix
|
||||
fi
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user