Recently Written · git

encrypted-home-backups

Automated home backups, onto an encrypted partition

git clone https://github.com/equwal/encrypted-home-backups

Log | Files | Refs


commit 8b3c88dace83c38d49faa2dd2bdde3e9e76af50a
Spenser Truex <spensertruexonline@gmail.com>
2019-04-02 15:27:53 -0700

Added daily backup.

 README.md    | 5 ++++-
 backup-daily | 2 ++
 install      | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index d474f9b..d00df73 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Automatic encrypted /home backups
+# Automatic daily encrypted /home backups
 
 # Install
 Encrypt and install filesystems on the backup disk.
@@ -30,3 +30,6 @@ Mount folder cannot be in the `/home`.
 Execute it as root with the device plugged in.
 
 `# ./backup`
+
+Or, if you have cron installed, it will install itself in cron.daily for fully
+automated encrypted backup.
diff --git a/backup-daily b/backup-daily
new file mode 100755
index 0000000..5772e0c
--- /dev/null
+++ b/backup-daily
@@ -0,0 +1,2 @@
+#!/bin/bash
+backup
diff --git a/install b/install
index 3f64eb1..120c5aa 100755
--- a/install
+++ b/install
@@ -2,3 +2,4 @@
 chown root backup
 cp backup /usr/bin
 cp backup.pl /usr/bin
+cp backup-daily /etc/cron.daily