Simple script to backups Filemaker Server backups to Storage(SFTP).
Backup flow:
- copy backups(folders) from Filemaker Server backups folder to folder on local drive
- compress backups and upload to Storage if
upload_backup_types
set - remove copied folders and uploaded zip file(if uploaded to Storage)
- keep
keep_not_uploaded_items
last items for not uploadedbackup_types
-
fpt_server
- storage server -
fpt_username
- storage username -
fpt_password
- storage password -
filemaker_path
- path where Filemaker Server crates backups -
backups_path
- local path where to keep backups -
branch
- "root" folder in bucket -
backup_types
- types of backups(folders) underfilemaker_path
-
upload_backup_types
- list ofbackup_types
uploaded to Storage -
keep_not_uploaded_items
- ifbackup_types
not uploaded to Storage keepkeep_not_uploaded_items
items inbackups_path
Sample config file config.json
{
"fpt_server": "...",
"fpt_username": "...",
"fpt_password": "...",
"filemaker_path": "C:\\Program Files\\FileMaker\\FileMaker Server\\Data\\Backups",
"backups_path": "C:\\Users\\admin\\Backups",
"branch": "palladium",
"backup_types": [
"daily",
"hourly"
],
"upload_backup_types": [
"daily"
],
"keep_not_uploaded_items": 2
}