FYI: I am new to drupal, drush and PHP but am an experienced programmer in other areas. Am familiar and comfortable with the command line.
I use drush on both Linux and Mac.
I have a drupal site to archive, but there are many directories under the filesystem root which are not part of the site.
NOTE: This has happened because I use Hostmonster and add-on domains are "added on" under the site root.
I know that archive-dump has an exclude option and I could chain a couple of dozen 'excludes' but that's not nearly as 'elegant' as chaining seven 'includes' - which would be
includes, misc, modules, profiles, scripts, sites, themes
Any ideas?
thanks
* Tim Johnson tim@akwebsoft.com [131205 16:08]:
FYI: I am new to drupal, drush and PHP but am an experienced programmer in other areas. Am familiar and comfortable with the command line.
I use drush on both Linux and Mac.
I have a drupal site to archive, but there are many directories under the filesystem root which are not part of the site.
NOTE: This has happened because I use Hostmonster and add-on domains are "added on" under the site root.
I know that archive-dump has an exclude option and I could chain a couple of dozen 'excludes' but that's not nearly as 'elegant' as chaining seven 'includes' - which would be
includes, misc, modules, profiles, scripts, sites, themes
Forgot to say : I have used rsync and sql-sync to do something similar, it does (I think) take only the site directories, but the downside is that one would have to have a local site built already to 'syn' to .....
Try the backup and migrate module.
Hth Am 06.12.2013 03:05 schrieb "Tim Johnson" tim@akwebsoft.com:
- Tim Johnson tim@akwebsoft.com [131205 16:08]:
FYI: I am new to drupal, drush and PHP but am an experienced programmer in other areas. Am familiar and comfortable with the command line.
I use drush on both Linux and Mac.
I have a drupal site to archive, but there are many directories under the filesystem root which are not part of the site.
NOTE: This has happened because I use Hostmonster and add-on domains are "added on" under the site root.
I know that archive-dump has an exclude option and I could chain a couple of dozen 'excludes' but that's not nearly as 'elegant' as chaining seven 'includes' - which would be
includes, misc, modules, profiles, scripts, sites, themes
Forgot to say : I have used rsync and sql-sync to do something similar, it does (I think) take only the site directories, but the downside is that one would have to have a local site built already to 'syn' to ..... -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com, http://www.tj49.com -- [ Drupal support list | http://lists.drupal.org/ ]
* Ingo Preuss ingo.preuss@gmail.com [131206 07:11]:
Try the backup and migrate module.
Hth
Thanks for the tip. Backup and migrate on its own just backs up the database, but it has a plugin https://drupal.org/project/backup_migrate_files to back up files. I will report back. :) It isn't drush but I hope it will work in a pinch. thanks again
Am 06.12.2013 03:05 schrieb "Tim Johnson" tim@akwebsoft.com:
- Tim Johnson tim@akwebsoft.com [131205 16:08]:
FYI: I am new to drupal, drush and PHP but am an experienced programmer in other areas. Am familiar and comfortable with the command line.
I use drush on both Linux and Mac.
I have a drupal site to archive, but there are many directories under the filesystem root which are not part of the site.
NOTE: This has happened because I use Hostmonster and add-on domains are "added on" under the site root.
I know that archive-dump has an exclude option and I could chain a couple of dozen 'excludes' but that's not nearly as 'elegant' as chaining seven 'includes' - which would be
includes, misc, modules, profiles, scripts, sites, themes
Forgot to say : I have used rsync and sql-sync to do something similar, it does (I think) take only the site directories, but the downside is that one would have to have a local site built already to 'syn' to ..... -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com, http://www.tj49.com -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
* Tim Johnson tim@akwebsoft.com [131206 10:20]:
- Ingo Preuss ingo.preuss@gmail.com [131206 07:11]:
Try the backup and migrate module.
Hth
Thanks for the tip. Backup and migrate on its own just backs up the database, but it has a plugin https://drupal.org/project/backup_migrate_files to back up files. I will report back. :) It isn't drush but I hope it will work in a pinch.
I ran into problems with the backup_migrate_files module regarding pear (FYI - am php noob). The solution using archive-dump is I believe the tar-options option which passes options to tar. tar-options="exclude=dir1 exclude=dir2 ..." works
more simply an input file would work better for multiple excludes, and that should be the tar '-T file_listing_files_to_exclude.txt' option.
So far I haven't been able to make that work, but will be the solution, I suspect.
I will post what works when I get to it. cheers
* Tim Johnson tim@akwebsoft.com [131206 11:57]:
- Tim Johnson tim@akwebsoft.com [131206 10:20]:
- Ingo Preuss ingo.preuss@gmail.com [131206 07:11]:
Try the backup and migrate module.
Hth
Thanks for the tip. Backup and migrate on its own just backs up the database, but it has a plugin https://drupal.org/project/backup_migrate_files to back up files. I will report back. :) It isn't drush but I hope it will work in a pinch.
I ran into problems with the backup_migrate_files moduleregarding pear (FYI - am php noob). The solution using archive-dump is I believe the tar-options option which passes options to tar. tar-options="exclude=dir1 exclude=dir2 ..." works
more simply an input file would work better for multiple excludes, and that should be the tar '-T file_listing_files_to_exclude.txt' option.
So far I haven't been able to make that work, but will be the solution, I suspect.
I will post what works when I get to it.
Was a typo above. Should have typed '-X file_listing_files_to_exclude.txt' option. I.E. the tar option should be -X
But I can't get it to work. If I use the option above as a quote to --tar-option, drush will back up only the sites directory.
If (by running drush in verbose) I run one of the same tar commands that drush is issuing, I get the selective backup I'm looking for.
If anyone would like to pursue this or has any further ideas, I would welcome comments, suggestion etc... otherwise I may submit this problem as a trouble ticket.
IMHO - archive-dump should be able to do pick directories and files selectively.