Posted by planetlarg on December 29, 2012 at 6:34pm
What's the best way to remove the old platforms?
I've got a few BOA distributions (if that's the right word - maybe it's install profiles) with a lot of unused platforms. I am now running out of space on my server.
I installed BOA-2.0.3 (http://omega8.cc/boa-203-edition-152) with max platforms.
boa \
in-stable \
public \
myhost.mydomain.tld \
me@mydomain.tld \
o1 \
max \
new-relic-key-1234
After a couple BOA upgrades and some playing around I've now got three octopus satellites in /data/disk/ and multiple copies of platforms in /data/all/. Basically, lots of megabytes of unused files and lots of symlinks pointing to them.
Many thanks,
Nick

Comments
Hi Nick
I would recommend to check where your disk space is really used. Typically it is because of too many old backups in every instance /data/disk/USER/backups directory. I don't think that the extra platforms itself could cause problems with disk space, since every new full platforms tree in /data/all uses just 1.5 GB, if all platforms are added, and these platforms/files are shared between all instances. If you really need to remove those not used platforms, check: http://omega8.cc/too-many-duplicate-platforms-125 first. When done, you will have to manually delete those not used platforms from /data/all/ subdirectories. We plan to automate this (as an option) in the near future.
Best,
Grace
deleted backups, deleting platforms
Thanks for the swift response. Fantastic.
backups -
Oh yes, backups did use a lot of space. I ran an old file delete, something along the lines of this.
remove everything older than 30 days
find backups -mtime +30 -exec rm {} \;
This left a lot of empty directories that look like they were from BOA upgrades.
remove empty directories
find backups -type d -exec rmdir {} \;
platforms -
I started the manual delete. Crikey, it's a bit boring!
Is there a command line shortcut?
There is no command line
There is no command line shortcut for this kind of task, yet.