14 lines
234 B
Bash
14 lines
234 B
Bash
#!/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
|