gaubert / gmvault

gmail backup software
http://www.gmvault.org
GNU Affero General Public License v3.0
3.57k stars 284 forks source link

Suggestion: Change default DB directory to reflect gmail account #145

Open HenrikBengtsson opened 11 years ago

HenrikBengtsson commented 11 years ago

The default DB directory is $HOME/gmvault-db/. After having read all the requests/questions in the Google Group, may I suggest to migrate the default to be

$HOME/gmvault-db/<GoogleUser>/

For instance, with

gmvault sync foo.bar@gmail.com

you the database would be stored in $HOME/gmvault-db/foo.bar@gmail.com/

This would spare you and several users from wasting a few brain cycles, error messages and Q&As.

/Henrik

WebSpider commented 11 years ago

Not all filesystems handle characters such as '@' very well. Since gmvault is crossplatform, some translations or another storage scheme may fit better

HenrikBengtsson commented 11 years ago

I know that it works with the"common" file systems on OSX, Linux and Windows.

Anyway, I understand that '@' is not POSIX safe. If that is wanted, one could encode as foo.bar_at_gmail.com. Of course, one need to handle cases such as _at_at_at_at_gmail.com, but that shouldn't be hard.

Alternatively one could use URL encoding, i.e. foo.bar%40gmail.com, but I don't know if '%' is any better than '@'.

gaubert commented 10 years ago

@HenrikBengtsson @WebSpider I take the feature on board and will implement it in the next version. I need to handle backward compatibility with the current default area (migrate it for example).

HenrikBengtsson commented 10 years ago

Sounds great. Thxs.

judgej commented 9 years ago

Just so I understand, if I backup several gmail accounts, will they - by default - be merged into one big backup directory? Are they not separated in some way?

gaubert commented 9 years ago

Hi Jason,

Using the -d option you can change the gmvault-db default directory. For instance, for the first email: $>gmvault email1@gmail.com -d \mydirectory\email1-db

For the second mailbox: $>gmvault email2@gmail.com -d \mydirectory\email2-db

Then the 2 mailboxes will be backed up independently.

Cheers, Guillaume

On 10 May 2015 at 13:27, Jason Judge notifications@github.com wrote:

Just so I understand, if I backup several gmail accounts, will they - by default - be merged into one big backup directory? Are they not separated in some way?

— Reply to this email directly or view it on GitHub https://github.com/gaubert/gmvault/issues/145#issuecomment-100625748.

judgej commented 9 years ago

Thanks, that's good to know. So they will get merged if I don't take steps (as you outlined here) to prevent it.