Compare commits

..

No commits in common. "master" and "borg-1.1" have entirely different histories.

4 changed files with 6 additions and 28 deletions

4
.gitignore vendored
View File

@ -1,4 +0,0 @@
sync_file_range_test
borg
borg_test
borg-env

View File

@ -26,7 +26,7 @@ Tested and working so far is:
- backup up to remote repositories via ssh
Tested and working on devices:
- Huawei Nexus6p with stock Android 8.1.0 (angler, aarch64)
- Huawei Nexus6p with stock Android 8.0.0 (angler, aarch64)
- Samsung Galaxy Note 2 with Lineage 14.1 (n7100, armv7l, Android 7.1.1)
Feedback on tests with other devices and android versions is very welcome.

View File

@ -1,9 +0,0 @@
#!/data/data/com.termux/files/usr/bin/bash
t=`date +%d_%m_%Y`
export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes
export BORG_RELOCATED_REPO_ACCESS_IS_OK=yes
host=angler
dirs="/ /system /vendor /cache /persist /firmware /storage /data"
export BORG_RSH=borg_ssh_wrapper
source /data/data/com.termux/files/home/borgbackup_on_android/borg-env/bin/activate
borg create -C lz4 -p -v --stats --one-file-system backup:/backup/borg/$host::$t $dirs # 2> ~/borg_backup_${t}.err

View File

@ -1,19 +1,17 @@
#!/data/data/com.termux/files/usr/bin/bash
set -ex
termux-wake-lock
set -x
apt -y install make clang openssl-dev perl tsu wget git python python-dev gnupg2 dirmngr curl autoconf automake sed gettext gzip pkg-config
apt update
apt -y install make clang openssl-dev perl tsu wget git python python-dev gnupg dirmngr curl autoconf automake sed gettext gzip pkg-config libcrypt-dev
pip install virtualenv
virtualenv --python=python3 borg-env
source borg-env/bin/activate
test -d borg || git clone https://github.com/borgbackup/borg.git
git clone https://github.com/borgbackup/borg.git
cd borg
git checkout 1.1.6
git branch 1.1-maint remotes/origin/1.1-maint
git checkout 1.1-maint
pip install Cython
pip install -r requirements.d/development.txt
#find if sync_file_range is available
@ -40,12 +38,10 @@ wget https://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz.sig
gpg2 attr-2.4.47.src.tar.gz.sig
tar -xf attr-2.4.47.src.tar.gz
cd attr-2.4.47
#fixing paths to sh
sed -i "s/\/bin\/sh/\/data\/data\/com.termux\/files\/usr\/bin\/sh/" configure
sed -i "s/\/bin\/sh/\/data\/data\/com.termux\/files\/usr\/bin\/sh/" install-sh
sed -i "s/\/bin\/sh/\/data\/data\/com.termux\/files\/usr\/bin\/sh/" include/install-sh
#fix for non-existent /tmp directory in set_cc_for_build of config.guess for 32-bit arm
sed -i "s/TMPDIR=\/tmp/TMPDIR=tmp/g" config.guess
mkdir tmp
@ -98,8 +94,3 @@ borg create borg_test::1 borg
borg list borg_test
borg info borg_test::1
borg list borg_test::1
echo "Borg was successfully installed"
#release wakelock
termux-wake-unlock