-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Take a snapshot every 1 hour. Keep the previous snapshots:
- A 1-hour snapshot for 24 hours.
- A 1-day snapshot for 30 days.
- A 1-week snapshot for 104 weeks.
Launch a program every 1 hour with a timer.
When launched:
- Take a snapshot.
- Separate the previous snapshots with young, middle, and old generations:
- Young: within the previous 24 hours.
- Middle: last 24 hours to last 30 days.
- Old: last 30 days to the infinity past.
- Destroy snapshots of the Middle generation:
- The current time is the infinity past.
- Find-Earliest: Find the earliest snapshot from the current time to the future and KEEP the found snapshot.
- Move the current time to the time when the found snapshot was created.
- Spend the Keep-Interval time. Hint: The current time moves.
- Go to Find-Earliest if the current time is in the generation.
- Destroy no-keep snapshots in the generation.
- Destroy snapshots of the Old generation:
- The same process as the Middle generation.
- Destroy the snapshots of more than 104 from the near time.
Keep-Interval: Middle is 1 day, Old is 1 week.
Elephant Backup has the snapshot name format.
elephant-<year>-<month>-<day>-<hour munite second>
e.g., the name of snapshot is elephant-2022-08-30-120031
when you take a snapshot at 12:00:31 on 2022/AUG/30.
Create the log file with:
- the
/var/log/elephant-backup.log
path. - the permission which normal users write.
npm's npm-run-script
does not launch under the super user.
npm-run-script means not only npm run start
, but also npm start
.
See the @baco16g's at Yappli, inc. repot : https://tech.yappli.io/entry/npm7_douser.
-
Destroy many snapshots:
e.g. ZFS filesystem: pool1, ZFS snapshot: pool1@elephant with followed the time string.
zfs list -t snapshot pool1 -o name | grep pool1@elephant | xargs -I {} sudo zfs destroy -r {}
Install node.js on Ubuntu Linux.
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
Uninstall node.js on Ubuntu Linux.
sudo apt-get purge nodejs
sudo rm -r /etc/apt/sources.list.d/nodesource.list
See Installing Node.js via package manager on other platforms.
- NAS storage with ZFS RAID5
- Attach the Crucial MX500 to the media server.
- Update the Crucial MX500 firmware, after building the NAS storage with ZFS RAID5.