Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/txstate-etc/pagers
Backup Magnolia CMS by exporting site pages
https://github.com/txstate-etc/pagers
backup-utility magnolia-cms rust-lang
Last synced: 22 days ago
JSON representation
Backup Magnolia CMS by exporting site pages
- Host: GitHub
- URL: https://github.com/txstate-etc/pagers
- Owner: txstate-etc
- License: mit
- Created: 2018-05-17T18:12:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T21:34:17.000Z (about 4 years ago)
- Last Synced: 2024-11-08T14:48:27.680Z (3 months ago)
- Topics: backup-utility, magnolia-cms, rust-lang
- Language: Rust
- Size: 75.2 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pagers
magnolia per page backup service## Build
```
alias rust-musl-builder='docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder'
rust-musl-builder cargo build --release
scp target/x86_64-unknown-linux-musl/release/pagers
```## Environment
* ARCHIVE_DIR=/mnt//v2
* PREVIOUS_EXT=$(date -d yesterday +%Y%m%d)
* ARCHIVE_EXT=$(date +%Y%m%d)
* BACKUP_URLS='https://usr:pwd@host1:port/path,https://usr:pwd@host2:port/path,...'## Notes
Currently this service is only being used by the DAM. It utilizes our custom exports.jsp code as Magnolia has moved to vaadin to manage the import/export tools which really are only accessible via a browser. It access Magnolia's RESTful interface to gather a list of leaf nodes / assets that need to be downloaded, exports them individually, and updates the files modify time to match the last_modified associated with the asset. Upon subsequent passes pagers will only export an asset if the last_modified time no longer matches the exported file's modify timestamp. If it does match then a hard link to the original is made for that day's backup; so as to save space.