Backups & Files · about 1 min · 2 steps
Copy a file before editing
Keeps a dated copy of a settings file, so you can go back if an edit goes wrong.
Runs on
- Debian / Ubuntu: supported
- RHEL / Fedora: supported
- Alpine: supported
What it changes on your server
- Copies the file to <file>.bak-<date> next to it, keeping its owner and permissions.
- In folders whose files are all loaded (such as sites-enabled or *.d), the copy goes to /var/backups/shellbay/files instead, so it isn't loaded too.
What Shellbay asks you
Which file?
The full path of the file, starting with /.
- File
- Text, up to 1024 characters
Example:
/etc/nginx/nginx.conf
Steps
- Copy the file
- Check the copy
Shellbay checks the server before the first step, and stops at the first step that fails.
When it's done
- The copy's path is shown in Output. To go back, copy it over the original with cp -p, then reload the service that uses it.