Loading repository data…
Loading repository data…
dhacommas / repository
This repository contains a collection of shell scripts for using rsync to perform efficient file transfers and backups across multiple machines.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This repository contains a collection of shell scripts for using rsync to perform efficient file transfers and backups across multiple machines.
This repository contains several useful shell scripts for performing various rsync tasks. Here are the list of the scripts and their purposes:
rsync-android: This script performs a backup of android internal storage data to external drive.rsync-termux: This script performs a backup of android internal storage data to external drive using termux in Android device.To use these scripts, you will need:
rsync utility, which is pre-installed on most Unix-like systems.rsync-android :
A shell script to backup android internal storage data to external drive.
uses 'Android File Transfer For Linux' to mount Android internal storage as mtp. Make sure to configure it first.Before executing the script, Replace the config variables as per your needs:
mtpDIR : mtp mount directory
ExtDrive : Path of External Drive
DESTINATIONDIR : Destination path in External Drive
EXCLUDES : excludes file. rsync_excludes.txt- this contains a wildcard pattern per line of files to be excluded.
BackupDirFile : BackupDir.txt file - this contains per line of directories to be backed up.
rsync-termux : A shell script to backup android internal storage data to external drive via termux.rsync package by excuting:
pkg install rsync
rsync-termux script
mkdir -pv ~/home/local/bin
cd ~/home/local/bin
curl https://raw.githubusercontent.com/dhacommas/rsync-script/main/rsync-termux > rsync-termux
Before executing the script, Replace the config variables as per your needs:
configDIR : config directory in sdcard path which contains BackupDir.txt and rsync_excludes.txt
ExtDrive : Path of External Drive
DESTINATIONDIR : Destination path in External Drive
EXCLUDES : excludes file. rsync_excludes.txt- this contains a wildcard pattern per line of files to be excluded.
BackupDirFile : BackupDir.txt file - this contains per line of directories to be backed up.
rsync-linux :
A shell script to backup linux machine data to external drive.Before executing the script, Replace the config variables as per your needs:
ExtDrive : Path of External Drive
DESTINATIONDIR : Destination path in External Drive
EXCLUDES : excludes file. rsync_excludes.txt- this contains a wildcard pattern per line of files to be excluded.
BackupDirFile : BackupDir.txt file - this contains per line of directories to be backed up.
To install these scripts, simply clone the repository:
git clone https://github.com/dhacommas/rsync-script.git
ssh:
git clone git@github.com:dhacommas/rsync-script.git
Be sure to replace the config variables as per your needs before executing the script.
To use any of these scripts, simply navigate to the directory containing the script and run it. For example:
cd rsync-script
chmod +x rsync-android
./rsync-android
Add the script path to PATH to execute from anywhere. (.bashrc)
termux:
cd ~/home/local/bin #location of `rsync-termux` script
chmod +x rsync-termux
./rsync-termux
or
Add the script path to PATH to execute from anywhere. (bash.bashrc)
If you find a bug or have a suggestion for a new feature, please open an issue or create a pull request.
This repository is licensed under the GNU General Public License v3.0
@dhacommas
@EphemeralG