-
Notifications
You must be signed in to change notification settings - Fork 14
Configuring FTP backup option
The configuration of FTP backups can be a bit tricky. The following illustrates a way to make it work.
First create an FTP account. I use cPanel in my host to do this. IMPORTANT: notice that, while cPanel added a Directory to my account (that is, tenutoweb.com/myftp) that path is invisible to my ftp account once I'm logged in the FTP server. See the Backdrop configuration below for this.
![Screen Shot 2023-09-17 at 8 09 31 AM](https://private-user-images.githubusercontent.com/9938978/268509214-a9f82e5b-bb6f-49e2-aed8-7b9688f92f0a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMzU3NTMsIm5iZiI6MTcyMzMzNTQ1MywicGF0aCI6Ii85OTM4OTc4LzI2ODUwOTIxNC1hOWY4MmU1Yi1iYjZmLTQ5ZTItYWVkOC03Yjk2ODhmOTJmMGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTFUMDAxNzMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmU0ZjNmZGE0MDhmNDM5NWEyOGEyZTE5ZTdiMmNmYTM2MGRiZWE3NjdmMGFmMDNiMDcwZmZhNDYyYmJlOTlkNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.n_y5gI5y1v88r7A5-0KfSYF9UkyQC8yeWuaFFLpvMM0)
Once I have that, I configure Backup and Migrate. I added a new FTP destination:
![Screen Shot 2023-09-17 at 8 40 00 AM](https://private-user-images.githubusercontent.com/9938978/268509373-732250f5-5b7c-4359-83bd-3e9b86991c2c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMzU3NTMsIm5iZiI6MTcyMzMzNTQ1MywicGF0aCI6Ii85OTM4OTc4LzI2ODUwOTM3My03MzIyNTBmNS01YjdjLTQzNTktODNiZC0zZTliODY5OTFjMmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTFUMDAxNzMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWU0YTk3ZDZkN2ZiYWNhYWRiMGMwOGJiMjkyYWE1MzJhYjZiM2Y4ZDk3NzZhMjVkMzJhNWM0NWZiZjM2ODA2OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.FtjOiLNAdC0yv0PVMnze6HxZz_LW7GfLHagmNs3CcNM)
A very important point: I put /
in the path, NOT the full path. This is the relative path for my ftp user once it's logged in. IF you want to put files within a sub-folder, then you must create that sub-folder by logging in using an FTP client program, and creating a subfolder.
I then create a backup. Just to make sure that the backup worked, I go to Settings and click "List Files"
![Screen Shot 2023-09-17 at 8 46 35 AM](https://private-user-images.githubusercontent.com/9938978/268509542-3744ce32-c914-4934-8cde-f76d826373a6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMzU3NTMsIm5iZiI6MTcyMzMzNTQ1MywicGF0aCI6Ii85OTM4OTc4LzI2ODUwOTU0Mi0zNzQ0Y2UzMi1jOTE0LTQ5MzQtOGNkZS1mNzZkODI2MzczYTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTFUMDAxNzMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWM2MzBkNzNiMjNjNWM2NGViMjMyYjUyNDY1NzNlMWJmOGFmYzY3NmM0OTk4ZDU2NTY4NTQ3MDRhNjAwOWRkMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.NLvew6F-BePM3hVex1EkpsXkfPaDxmu7A44s9enljv0)
And I can see the file of the last (and only) backup in my account:
The module still can't access the top level with the path "/" (it's different for each provider) but with e.g. "/httpdocs" or the subdirectory "/httpdocs/myfolder" Backup and Migrate works fine now in the exchange via FTP.
PS: With my provider (not all of them) you have to use passive mode for FTP, so check the box "Use PASV transfers" (just below the "Password" field).