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
|
||||
Reference in New Issue
Block a user