rcloned | Bash scripts | Continuous Backup library
kandi X-RAY | rcloned Summary
kandi X-RAY | rcloned Summary
I'm not much of a programmer but this works for my needs as all I have is a small office. I hacked some Bash code together with pretty much toothpaste and duct tape and did not comment it that well at all. As a point of reference my data on my linux box (running CentOS 7) is in /dataEncrypted/Folder 1/ ; /dataEncrypted/Folder 2/ ; etc. I use EncFs for the encryption/decryption and the decrypted folder is /data. And my Cloud data (in rclone format) is in acd:/Folder 1/ ; acd:/Folder 2/ ; etc. You'll need to install inotifywait (for Centos 7 it's inotify-tools from the EPEL repo) and perl and perhaps some other dependencies and modify the scripts to fit your data location and rclone config. I then placed all the scripts in /etc/local/sbin/ and then chmod +x. Then, its as simple as "rcloned start", "rcloned status", "rcloned stop". The logfile is /var/log/rcloned.log. There are two Bash scripts that do all the work: rclonedWatcher looks for any writes to any file within a folder, recursively, and puts those filenames in a pipe: /tmp/rcloned. rclonedProcessor looks for any filenames in that pipe, every 15 seconds, and uploads all the files in the pipe, one by one, to the Cloud. I use 2 cron jobs. The first one runs every minute and thereby starts rclonedWatcher and rclonedProcessor and checks to ensure all processes are running, and will restart all processess if any processs crashes. The last one runs every night at midnight to fix anything missed by the rclonedWatcher and rclonedProcessor. And since I only have rclonedWatcher looking for writes (and nothing else), the last cron job also takes care of file deletions, filename changes, file moves, etc. We also need to create a symlink specific to our midnight cron job as we can't use "-f" with pgrep in a crontab as it will match against "sh" which runs the cronjob. So I did "ln -s /etc/local/sbin/rclone /etc/local/sbin/rcloneNightly". Now we can use pgrep with "rcloneNightly".
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rcloned
rcloned Key Features
rcloned Examples and Code Snippets
Community Discussions
Trending Discussions on Continuous Backup
QUESTION
ANSWER
Answered 2022-Feb-22 at 10:59I am not sure if you have seen this message in the portal when you created the account/also mentioned in the doc
"You will not be able to switch between the backup policies after the account has been created"
since you need to select either "Periodic" or "Continuous" at the creation of Cosmos Account, it becomes mandatory.
Update:
You will not see the above in portal anymore, you can Switch from "Periodic" to "Continous" on an existing account and that cannot be reverted. You can read more here.
QUESTION
What would be the consistency of the continuous backup of the write region if the database is using bounded staleness consistency? Will it be equivalent to strong consistent data assuming no failovers happened?
Thanks Guru
...ANSWER
Answered 2021-Nov-25 at 17:15Backups made from any secondary region will have data consistency defined by the guarantees provided by the consistency level chosen. In the case of strong consistency, all secondary region backups will have completely consistent data.
Bounded staleness will have data that may have stale or inconsistent data inside the defined staleness window (minimum 300 seconds or 100k writes). Outside of that staleness window the data will be consistent.
Data for the weaker consistency levels will have no guarantees for consistency from backups in secondary regions.
QUESTION
MongoDB has deprecated the continuous back up of data. It has recommended using CPS (Cloud provider snapshots). As far as I understood, snapshots isn't really going to be effective compared to continuous backup coz, if system breaks, then we can only be able to restore the data till the previous snapshot which isn't gonna make the database up-to-date or close to it atleast.
Am I missing something here in my understanding?
...ANSWER
Answered 2020-May-19 at 10:12Cloud provider snapshots can be combined with point in time restore to give the recovery point objective you require. With oplog based restores you can get granularity of one second.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rcloned
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page