Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
omega8cc committed Aug 6, 2016
1 parent bc5eac3 commit abc6ba3
Show file tree
Hide file tree
Showing 76 changed files with 1,310 additions and 1,310 deletions.
40 changes: 20 additions & 20 deletions 02.importing/01.get-database-files/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ routes:
- /prepare-your-database-files
---

To import your site into Aegir, the first step is to get your database\
and files. You need to copy them from the old site and upload them to\
To import your site into Aegir, the first step is to get your database
and files. You need to copy them from the old site and upload them to
your Aegir account.

Task: Get Your Database and Files
Expand All @@ -34,8 +34,8 @@ Chive.
**** Or, use the [Backup and Migrate module.](backup-migrate) The backup
archive includes a database dump as a file ending in `.sql`

1. If your old database uses table prefixes, you'll need to remove\
these prefixes in the sql file. See "Don't Use Table Prefixes in\
1. If your old database uses table prefixes, you'll need to remove
these prefixes in the sql file. See "Don't Use Table Prefixes in
Your Database" below.

1. Upload this sql file to `~/static/`.
Expand All @@ -54,55 +54,55 @@ archive includes a database dump as a file ending in `.sql`
`chmod -R 775 ~/static/old-site/`

1. Fix the `files/` permissions with a separate command: <code>chmod -R
777 \~/static/old-site/sites/<strong>default</strong>/files/</code>
777 ~/static/old-site/sites/<strong>default</strong>/files/</code>

**** Note the **777**, not **775**.

**** If you have also stored files in `sites/foo.com/files`, then fix
those permissions as well: <code>chmod -R 777
\~/static/old-site/sites/<strong>foo.com</strong>/files/</code>
~/static/old-site/sites/<strong>foo.com</strong>/files/</code>

**** Ignore any "Operation not permitted" errors (see below).

1. If your site will be on a new custom platform, you'll also need to\
add your custom platform before you can\
1. If your site will be on a new custom platform, you'll also need to
add your custom platform before you can
proceed. Follow the steps in [this doc](add-custom-platform)

Conclusion: Now Get Your Site Into Aegir
----------------------------------------

With your files and database on your account, you can now proceed to\
With your files and database on your account, you can now proceed to
[get your site into Aegir](get-site-into-aegir).

More Information
----------------

### Don't Use Table Prefixes in Your Database

If your old database used table prefixes, with names like `mydb_users`\
instead of `users`, you'll need to remove these prefixes from your\
database dump. Aegir doesn't support table prefixes. Each site gets\
If your old database used table prefixes, with names like `mydb_users`
instead of `users`, you'll need to remove these prefixes from your
database dump. Aegir doesn't support table prefixes. Each site gets
its own database.

Since the database dump is a plain text file, you can remove these\
Since the database dump is a plain text file, you can remove these
prefixes with a simple "find and replace" in your favorite text editor.

If your prefix is `mydb_`, you should be able to remove these prefixes\
If your prefix is `mydb_`, you should be able to remove these prefixes
quickly. `mydb_user` becomes `user`, and so on.

### "Operation Not Permitted"?

When changing permissions on a `files` directory with `chmod`, you may\
get errors like `Operation not permitted`. You can safely \*ignore\
these errors\*.
When changing permissions on a `files` directory with `chmod`, you may
get errors like `Operation not permitted`. You can safely *ignore
these errors*.

Although your FTPS/SSH user is not an owner of this directory, these\
`chmod` commands are still required, because they will set correct\
Although your FTPS/SSH user is not an owner of this directory, these
`chmod` commands are still required, because they will set correct
permissions for the files you upload.

References
----------

[get your site onto Aegir](get-site-into-aegir).

\[get-site-into-aegir\]
[get-site-into-aegir]
Loading

0 comments on commit abc6ba3

Please sign in to comment.