Backups & Files · about 3 min · 5 steps
Nightly folder backup
Backs up a folder every night into /var/backups/shellbay and deletes the nightly copies older than the days you choose.
Runs on
- Debian / Ubuntu: supported
- RHEL / Fedora: supported
- Alpine: supported
What it changes on your server
- Adds the folder to /etc/shellbay/directory-backups.list; every folder listed there is backed up each night at about 02:30.
- Installs /usr/local/sbin/shellbay-directory-backup and runs it with a systemd timer (Alpine: /etc/periodic/daily and crond).
- Deletes nightly backups (auto-…) older than the days you keep. Other backups aren't touched.
- Makes the first backup straight away.
What Shellbay asks you
Which folder should be backed up every night?
The full path, starting with /. Run this workflow again to add more folders; they share one schedule.
- Folder
- Text, up to 1024 characters. Default:
/var/www
Example:
/var/wwwHow many days of backups should be kept?
Older nightly copies are deleted to save space. Each copy takes about as much space as the folder compressed. This applies to every nightly folder.
- Days to keep
- A whole number from 1 to 365. Default:
7
Example:
7
Steps
- Check the folder
- Add it to the nightly list
- Schedule the nightly backup
- Make the first backups now
- Check the schedule and the backup
Shellbay checks the server before the first step, and stops at the first step that fails.
When it's done
- ‹folder› is backed up every night into /var/backups/shellbay, keeping ‹days to keep› days. To stop backing up a folder, delete its line from /etc/shellbay/directory-backups.list.
- Backups on the same server don't survive losing the server; download important ones too.