Post Admin Backup/Transfer script

Yeah but he wants it only to run when admin level backups are ran and not reseller level backups. Not sure if there is a way to do some if statement or not. If not then there should be a way to do just admin level or just reseller level.
 
there should be a way to do just admin level
Yes it would be usefull for invoking e.g. some cleanup scripts or remote backup after Admin Backup/Transfer.

One script for both resellers and admins is useless because admin backups and reseller backups could be differently scheduled so we sometimes don't know when all_backups_post.sh will be triggered.
 
all_backups_post.sh will be triggered.

Why not to test it yourself then?

Just put this into the file all_backups_post.sh:

Code:
#!/bin/bash

env | grep -v pass > $0.env

and see how it works and when. You might find there name of an user who starts backup, or other variables to use in if..else statements.
 
Back
Top