Automated backup on 2025-12-25 09:52:39
This commit is contained in:
13
backup-gitea.sh
Normal file
13
backup-gitea.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Change directory to the folder
|
||||||
|
cd /usr/local/sbin
|
||||||
|
|
||||||
|
# Stage all files
|
||||||
|
git add .
|
||||||
|
|
||||||
|
# Commit changes with a timestamp
|
||||||
|
git commit -m "Automated backup on $(date +'%Y-%m-%d %H:%M:%S')"
|
||||||
|
|
||||||
|
# Push to Gitea
|
||||||
|
git push origin master
|
||||||
Reference in New Issue
Block a user