I haven’t tried the feature with anything other than Photos and Videos, but for a phone, those are typically the types of files you’re trying to backup.Like magic, Nextcloud starts to suck up all of the files you specify! Underneath, define where you want the folder to live, then turn the toggle on.In the settings, there is an Auto Upload Photos/Videos toggle.sudo mv /var/snap/nextcloud/common/nextcloud/data /media/nextcloud/data.Finally, move your data to the new place.sudo nano /var/snap/nextcloud/current/nextcloud/config/config.php.sudo snap connect nextcloud:removable-media.If you’re storing your files on external storage like myself, you’ll need to install a removable media plugin.sudo nextcloud.enable-https self-signed.sudo nextcloud.occ config:system:set trusted_domains 1 –value=domainname.sudo nextcloud.manual-install leo password.The Nextcloud setup was too easy! (For someone that tinkers all the time).it is seriously a one line command ‘bash -i /path/to/filename > filename2’ to execute commands and record output and then mv the filename to doneFilename then echo filename2 > doneFilename and rm filename2.If it is there then you run the commands placed within this file and rename the file with a date stamp so that it is not picked up again(you can also get creative with the output if you want) just as an example, set up a cron script to execute a bash script every minute, this bash script looks for a file within the btsync location.Great to run commands on your home system.if you have write permissions on all the nodes then if one of them gets corrupt it will copy across all the systems and all will be corrupt.better for files that you want to backup but there are pitfalls.it is possible to backup an entire system with resilio sync if you give the group or user enough permissions or run it as root.Much like with torrents it is possible for none of the nodes to have a complete copy and still to get a complete copy on all the systems by the end as long as all portions are distributed.so you could be downloading multiple small portions from separate locations at the same time which greatly increases speed based on how many nodes that you have.the smaller files are easier to send then larger files would be.Files within the set shared space are broken into small parts then shared then reassembled on the “client side” when all portions are received.as for the bittorrent protocol here is how it works. it is self hosted so your data will only be on your computers.The more nodes that you have setup with the data that you are syncing the faster it will be synced across devices.Works across multiple OS’s including android.you can limit it further on systems by controlling the user permissions and or setting up resilio under its own user.you can also choose if the other clients will have write permissions on the data or just read.you can choose to limit this by making a single use code or a code that expires after a few days or by leaving it open.you add this to resilio sync on another machine or multiple machines.then you choose to share it and either a link a code or a qr code is generated.After setup you pick the folders that you want to share.Install the software and setup the user permissions and the places that it will have access to The setup is very similar to other syncing programs.Started out as bittorrent sync but everyone called it btsync and then when they tried to switch to a paid model they changed to resilio sync.timing can be a small issue if your backup runs long so don’t set it up to run every minute.Great to mix with cron for automating backups on your own.–checksum is the option to add for this.You can set it to instead check hashes for differences which is much slower but it will find all the changes.It will check file sizes and time stamps to see if it needs to sync a new file.Plus for backups it will only move files that it can verify have changed which makes it faster and use less data.The -a flag is great as it preserves symbolic links so you will not get stuck in a loop the way that it was possible to do with scp.especially if you use -P which will allow you to watch the progress and continue from where you left off even if it is mid file.so if you lose your connection you can run the same command again and pick up where you left off.what makes it great is the way that it will remember where you left off with a broken or partial sync.I have used it in production on several systems for back ups or syncing data on request.Comes stock on nearly every linux operating system.Used as the back end for most backup systems. In our Innards section, we cover backups like Rsync, Nextcloud and some underlying storage.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |