summaryrefslogtreecommitdiffstats
path: root/backup_crontab.sh
diff options
context:
space:
mode:
authorNiklas Halle <niklas@niklashalle.net>2024-02-10 11:47:06 +0100
committerNiklas Halle <niklas@niklashalle.net>2024-02-10 11:47:06 +0100
commit089569b5f051a3254667ac89e445dc4db3d37cf1 (patch)
treecf2337d390c313012b9b63ac4fdb9e954d906015 /backup_crontab.sh
parentcc7c4bb3383e4358050dccb56a49dd0dbcec43dc (diff)
downloadserver_scripts-089569b5f051a3254667ac89e445dc4db3d37cf1.tar.gz
server_scripts-089569b5f051a3254667ac89e445dc4db3d37cf1.zip
add crontab backup
Diffstat (limited to 'backup_crontab.sh')
-rwxr-xr-xbackup_crontab.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/backup_crontab.sh b/backup_crontab.sh
new file mode 100755
index 0000000..098fa1b
--- /dev/null
+++ b/backup_crontab.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+# Source the common utils and the environment variable loader
+source load_common_and_env.sh
+
+crontab -l > crontab.bak