owncloud-sync
Purpose
This skill tracks files created or imported into Google Drive over a specified period (e.g., last 30 days), verifies their presence on the OwnCloud server, and generates a daily report emailed to the user. The report lists new Google Drive files and flags any missing or outdated files on OwnCloud, helping the user decide which files to copy.
Rationale
Google Drive serves as a convenient workspace to drop and edit files. This skill helps decide whether to push files to OwnCloud or to delete/retain them on Google Drive.
Operating Mode
- The script
owncloud-sync.shis located in.openclaw/skills/owncloud-sync/. - Run the script manually or on demand; it requires Zsh.
Configuration
- The script require a local config file owncloud.json.
- The variables
ALLFILES_URL,ALLFILES_USER, andALLFILES_PASSinowncloud.jsonspecify the OwnCloud indexing service URL and credentials. GOG_ACCOUNT(Google Drive account) andEMAIL_RECIPIENT(report recipient) are also defined inowncloud.json.PERIOD_DAYSdefines the date range for querying Google Drive, also inowncloud.json.
Report
- All files created or imported during the specified period are checked on OwnCloud.
- The report indicates each file's status: OK, MISSING, or NEED UPDATE (if OwnCloud's version is older than Google Drive's).