Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Paul_Pauline on April 19, 2010, 07:09:32 AM

Title: Clarification Re Backing up with Filezilla !!!
Post by: Paul_Pauline on April 19, 2010, 07:09:32 AM
Hi Guyz.

As many of us use Filezilla as an ftp client, I think we need a definative answer as to how to back up files safely  O:)

Here's a link to an article regarding this subject  http://www.simplemachines.org/community/index.php?topic=374178.0

This would suggest that not all files should be saved in the same way  :-\

However, I read an article by Arantor, where I believe he said you could safely back up "ALL" files using the "BINARY" setting in Filezilla  ???

My head is now totally mashed trying to decide which way to go !

I personally back up my database via my hosts control panel as well, but i'm sure a lot of people out there are putting their trust in Filezilla  :o
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: sawz on April 19, 2010, 07:58:22 AM
isn't filezilla an ftp program?
i haven't read that article but i think the best method to backup your files would be using the backup feature in your website control panel. if your using a cpanel host, there is a backup link in there somewhere.
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: Paul_Pauline on April 19, 2010, 09:15:20 AM
Hi,

Yup, it's an ftp programme, but a lot of people seem to use it to back up their website, with the potential to corrupt attachment files in particular  :(
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: sawz on April 19, 2010, 10:25:53 AM
Quote from: Paul_Pauline on April 19, 2010, 09:15:20 AM
Hi,

Yup, it's an ftp programme, but a lot of people seem to use it to back up their website, with the potential to corrupt attachment files in particular  :(

right, i'm going to download a backup using an ftp program 1 file at a time, risking the chance there is a minor interruption resulting in a partial download of a file when i can use the backup area of my cpanel and get a complete backup in one tenth of the time.

anyone who downloads backups one file at a time using an ftp program is asking for problems.

same with uploading, you upload the compressed package, extract it using the cpanel file manager and all is well.

thats my thought on the subject.
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: MrPhil on April 19, 2010, 12:44:33 PM
It should be safe to FTP down files in binary mode, so long as you are careful to FTP them back up in binary mode too. You just don't want to transfer them one way in binary and the other in ASCII.

If you want to edit files on your PC, not all editors will handle "binary" transferred files correctly. Editors like Notepad (and Wordpad?) don't know how to handle "newline" end-of-line markers, while editors like ViM do handle them correctly. I have all my files transferred in binary, and use ViM for PC-based editing without any problem.
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: Paul_Pauline on April 19, 2010, 12:59:11 PM
Hi Mr Phil.

Thanks for that !

But slightly at a loss as to how a toilet cleaning product edits files  :o
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: ~DS~ on April 21, 2010, 02:09:36 AM
Ok I want to clarify this too. Basically we are suppose to backup in binary mode, am I correct?
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: a10 on April 21, 2010, 04:39:46 AM
Have used filezilla for a while, and yes, must be binary. Spotted it 1st time use, as file sizes changed from server to pc. Have restored many files from backups, also edited, always worked fine.

I've never unchecked (or even known about) the "treat files without extension as ASCII" setting, and have restored 1000's of attachments successfully, several times, after server crashes.

Do some tests, backup a few files, rename them on the server side, then transfer the backups to the server to actually see in real life that all works well.
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: ~DS~ on April 21, 2010, 11:53:22 AM
So this is correct as shown in the image?
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: Paul_Pauline on April 21, 2010, 12:03:04 PM
Hi, I would have thought those two boxes at the bottom should be unchecked  :-\

But i'm by no means sure.

I backup via my hosts control panel also.
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: ~DS~ on April 22, 2010, 11:44:17 PM
Bump...
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: sawz on April 23, 2010, 08:17:15 AM
Quote from: Dismal Shadow on April 22, 2010, 11:44:17 PM
Bump...
i have always left the Auto box checked and haven't had any problems.
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: Paul_Pauline on April 23, 2010, 08:29:20 AM
Yeah, that's what I always did.

But then people start recommending different things  :-\

So now I have it set at "Binary" with the bottom two boxes unchecked.

Which is why I originally posted this topic, far cleverer people than myself can't seem to agree, so what chance have us numpties got  :o
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: ~DS~ on April 28, 2010, 03:35:11 PM
Bump. I want clarify on this:
QuoteSo now I have it set at "Binary" with the bottom two boxes unchecked.
Title: Re: Clarification Re Backing up with Filezilla !!!
Post by: razor_edge on April 28, 2010, 03:49:45 PM
Quote from: Dismal Shadow on April 28, 2010, 03:35:11 PM
Bump. I want clarify on this:
QuoteSo now I have it set at "Binary" with the bottom two boxes unchecked.
Used filezilla for years without problems. Maybe the default is binary but it's worked well for me for years.