Hi,

I have a problem running backup task with aegir on a Solaris :

Could not back up sites directory for drupal
An error occurred at function : drush_provision_drupal_provision_backup

The command tar -C /var/aegir/drupal-6.15/sites/mysite.test.org -p -c -z -f /var/aegir/backups/mysite.test.org-20100121.144102.tar.gz . doesn't work.

It seems that we should use those 2 commands instead :

tar cpf /var/aegir/backups/mysite.test.org-20100121.144102.tar . -C /var/aegir/drupal-6.15/sites/mysite.test.org
gzip /var/aegir/backups/mysite.test.org-20100121.144102.tar

Obviously for restore, the same problem will happen.

Is there a way to customize those commands ?

Thanks,

CommentFileSizeAuthor
#3 691914.patch2.3 KBanarcat
#2 691914.patch2 KBanarcat

Comments

anarcat’s picture

Title: Backup on solaris » Backup fails on solaris
Assigned: Unassigned » anarcat

The commands cannot be customized, but we can certainly make them more portable, I'll look into this.

anarcat’s picture

Status: Active » Needs review
StatusFileSize
new2 KB

try this.

anarcat’s picture

StatusFileSize
new2.3 KB

the previous one was apparently backing up the whole platform instead of just one site. seems like gnu tar doesn't like solaris' tar argument order, ugh.

so i just chdir instead of screwing around with -C.

anarcat’s picture

Status: Needs review » Fixed

i committed the latter to HEAD, enjoy 2b694f1 !

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 06e4963 on debian, dev-dns, dev-envobject, dev-koumbit, dev-log_directory, dev-migrate_aliases, dev-multiserver-install, dev-newhooks, dev-nginx, dev-platform_management, dev-ports, dev-purgebackup, dev-restore, dev-services, dev-simplerinstaller, dev-site_rename, dev-ssl, dev_716166_apache_conf, dev_dns, dev_server_verify, prod-koumbit, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-subdir-multiserver, 6.x-2.x-backports, dev-helmo-3.x by anarcat:
    #691914 - port backup and restore to solaris backward tar implementation...