Releases: moritzdietz/pi-syncscript
New things! \o/
This update brings support for getting the appropriate package if you have a Raspberry Pi 2 with it's quad core ARM Cortex-A7 CPU and also it's about HTTP Status code 200.
ARM Architecture
BitTorrent Inc. is providing an armhf
build and I integrated a check on what Raspberry Pi you are running the script on to get you the appropriate build.
Raspberry Pi: Gets the arm
build
Raspberry Pi 2: Gets the armhf
build
Non-Default User
If you are not using the default user pi
but any other kind of username and want to install BitTorrent Sync as that user, the script will now detect that you are logged in as another user than pi
and then ask you first before installing.
This will get rid of the hassle to modify the btsync.sh
first before you run it.
So now it should be even more streamlined and comfortable.
HTTP Status Codes
Prior downloading the binary using the default link or a link you provided, as well as the configuration files from this GitHub page, the script will check if the file is actually online and accessible.
Basically it will check for HTTP status codes and if it is anything other than 200 the script will just quit, letting you know that the link is not working.
There are some things at the horizon for this project that might or might not result in a complete rewrite and probably deletion of 80% of it's code because of a thing.
Also I did some minor tweaks, cleaned up the code and did some cosmetic changes here and there.
Hope you like it.
If you find any bugs: please open an issue and I will get to it as soon as possible.
Backup v2 + minor fixes and additions
Backup-ing
With this release I am overhauling the backup functionality.
Now I am doing it right. I am creating a tar ball that includes the following files and directories.
/home/pi/.btsync/
/etc/btsync/config.json
/usr/bin/btsync
/home/<user>/.btsync
- It does not include
.log
files or zipped .log files (sync.log.*.zip
) nor does it include.journal
files.
- It does not include
The .tar.gz
file will be located in your home directory and is called btsync_backup_dd.mm.yyyy_hh-mm-ss.tar.gz
.
It is created using the tar -czPf
flags using absolute paths. When you want to restore a backup it will restore all files listed above.
Version display
Now when you update your installation the script will output your current version and the one you just upgraded to.
For new installations it will also let you know what version you just installed.
Other than that I did some minor tweaks here and there and added/changed some of the verbose output for the end user.
1.0
Initial release
The Sync Script currently delivers the following features and functionality:
- Install
- Update
- Backup
- Remove / "uninstall"
The update, backup and remove feature can only be used if the BitTorrent Sync installation has been created using this script.
TODO
I am planning on having the following features in the next versions
- Version checking
- Rewrite backup functionality to have it create a zipped archive