well yes i can make script for this, but in the future make selective backup can be util feature specially when have big sites and want skip that super big sites of the backup
I should probably also mention the little known script in the InterWorx bin dir: listaccounts.pex. It dumps out the uniqname and domain name, per line, of every account on the box. For example:
If you wanted to filter out something (like remove the .com domains from the list), you can do:
~iworx/bin/listaccounts.pex | awk ‘{print $2}’ | grep --invert-match .com
for domain in cat /mydir/mydomainlist
/home/interworx/bin/backup.pex --domains=$domain
end
It will backup one domain per domain, but it is exactly like (or very nearest) /home/interworx/bin/backup.pex --domains=doamin1,domain2,domain3
I’m not sure it changes something to launch n times backup.pex with one domain than lauching it one time with all domains. In all cases if it change something I promise you it is not time/cpu usage as I did some tests (way way a long a time ago…) and it was same.
So you just have to cat your list and for every entries in it you just have to call the backup.pex
Do not hesitate. We are few programmers at office, personnaly not really shell programmer but there is other guys at my office whom help you if need, so do not hesitate