mattconnolly / rails-backup-migrate

A gem providing a rake task for backing up and migrating databases and files between rails instances.
Other
26 stars 16 forks source link

Tar Wouldn't Accepted Wildcards on Ubuntu #1

Closed stungeye closed 13 years ago

stungeye commented 13 years ago

When restoring a database the _restore_db_from_yml task would fail with the following error:

"tar: Pattern matching characters used in file names. Please use --wildcards to enable pattern matching."

This can be fixed by changing line 90 of rails-backup-migrate.rake to:

`tar #{options} #{RailsBackupMigrate.backup_file} --wildcards 'db/backup/*.yml'`

Ubuntu Version = 11.04

mattconnolly commented 13 years ago

Thanks for the heads up, I've got a fix on its way.

stungeye commented 13 years ago

np. Other than this issue the gem works great with Rails 3 and MySQL. Thanks for making this gem available.

mattconnolly commented 13 years ago

Ended up not using the --wildcards option as this is only supported by gnu tar and not bsd tar (used also in mac and solaris as well as bsd). Simply extracting the folder without specifying a wildcard at all works on all versions.