Skip to content

Commit afd2c34

Browse files
committed
user warning and check for rsync installed
1 parent 24ad712 commit afd2c34

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This service performs a schedule system backup using `rsync` and sends Telegram
55

66
## :gear: Setup
77

8-
:warning: **Warning**: before you proceed, make sure your Linux OS uses `systemd` as a service manager.
8+
:warning: **Warning**: before you proceed, make sure your Linux OS uses `systemd` as a service manager and you have `rsync` installed in your system.
99

1010
Open terminal, change your current working directory to the location where you want the cloned directory and then clone this repository to your local machine
1111

install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ if ! command -v systemctl &> /dev/null; then
1212
exit 1
1313
fi
1414

15+
# ensure rsync is available
16+
if ! command -v rsync &> /dev/null; then
17+
echo "Error: rsync is not available on this system."
18+
exit 1
19+
fi
20+
1521
echo "Starting system-backup installation..."
1622

1723
# creating configuration file

0 commit comments

Comments
 (0)