snapshot.sh | Bash script for versioned snapshots using rsync | Continuous Backup library
kandi X-RAY | snapshot.sh Summary
kandi X-RAY | snapshot.sh Summary
Bash script for versioned snapshots using rsync, with purging. This is how I do my first level automatic backups of my servers. I run a couple of Odroid HC2 ARM SBCs with the Openmediavault NAS software and a 12TB drive. nas0 to nas5. I run them in pairs where the first NAS in the pair is used to share files on my LAN and the second NAS in the pair is used to take daily automatic versioned backup snapshots of the first NAS. I use a couple of bash-scripts, one per major folder on the NAS. And I have a cron job setup to, at 03:00, run a "master script" that in turn run all the snapshot scripts. All my NAS are connected to each other using GbE, NFS4 and autofs. The autofs mounts are in /srv/nfs/nas#. I have a separate script for each backup job. The scripts are all identical except for some paths, names and constants modified at the beginning of the script. As can be seen above this script was used to update a snapshot of local_media from nas0 to nas1. And snapshots are automatically purged so that no more than 7 daily, 4 weekly and 4 monthly snapshots are retained. The script creates a full snapshot backup copy by hardlinking unmodified files from the previous snapshot and copying over only modified files, if any. This means that the script is usually very fast. A snapshot with several TB of data and many thousands of files and folders can be updated in about a minute or so, if no files need to be copied. The script, as it is here, uses rsync in local mode. It might be used between two filesystems on the same server or on two servers via a NFS mount. But it should also be very easy to modify the script to run on the backup server and create snapshots of a remote server over ssh. This is of course inspired by "Easy Automated Snapshots, Mike Rubel".
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 snapshot.sh
snapshot.sh Key Features
snapshot.sh Examples and Code Snippets
Community Discussions
Trending Discussions on snapshot.sh
QUESTION
I'm wondering why my Shadown ID of a snaphot is not reconize when i want to select or delete it...
Context
I have created my snapshot with this:
...ANSWER
Answered 2021-Nov-29 at 14:37As mentioned in the comments, you need to pass the GUID without the {}
curly braces. The default string representation will do:
QUESTION
As title described, I'm trying to create multiple AWS EBS from shared snapshots.
I am using data "aws_ebs_snapshot_ids" to get the list of snapshots and then use for_each to create the EBS volumes. So something like this
...ANSWER
Answered 2020-Apr-15 at 00:35You can use an aws_ebs_snapshot data source to get the details for those snapshot IDs:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install snapshot.sh
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