https://github.com/markshust/backupsites
This repository is made to sort and cleanup backup files on a linux server.
https://github.com/markshust/backupsites
Last synced: 5 months ago
JSON representation
This repository is made to sort and cleanup backup files on a linux server.
- Host: GitHub
- URL: https://github.com/markshust/backupsites
- Owner: markshust
- Created: 2015-01-20T03:22:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-20T03:24:27.000Z (over 10 years ago)
- Last Synced: 2024-12-27T06:26:39.131Z (7 months ago)
- Language: Shell
- Homepage:
- Size: 137 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
backupsites
===========This repository is made to sort and cleanup backup files on a linux server.
Usage
-----Set the proper permissions on this file, and setup on a cronjob that runs once a day.
```
# Set proper permissios
chmod 755 /home/backupsites.sh# Add to cronjob that runs at 3am
0 3 * * * /home/backupsites.sh
```This script will create daily, weekly and monthly subdirectories in the `backupdir` folder with the archived/organized files.
Options
-------- `backupdir`: The directory which backups are located.
- `weeklybackupday`: The day of the week which backups are ran (ex. Sunday).