aMule Forum

English => Feature requests => Topic started by: morph on December 12, 2005, 12:33:02 AM

Title: downloads export facility
Post by: morph on December 12, 2005, 12:33:02 AM
Hi,
I'm wandering about "How can i backup my aMule downloads"? as of now, what can be done is copy the .met file from TEMP dir to a backup dir. But that's not so fine.

So I'm thinking some export (and import) functionality in amule. Actually, can be coded in amulecmd (so that can be used with amuled, since with amule one could copy as e2dk link all downloads).

We can generate an e2dk link, maybe with some added information, for example the category, download priority, or something else.

I see this feature almost as mysql exp/imp:

$ amulecmd -c "export" > amule_dump
$ amulecmd -c "import" < amule_dump

what about this idea?

Thanks & Regards.
Title: Re: downloads export facility
Post by: Xaignar on December 12, 2005, 01:14:10 AM
Why is copying the .mets not fine?
Title: Re: downloads export facility
Post by: lfroen on December 12, 2005, 07:17:56 AM
I have no idea how does it looks like in mysql, but backing up entire .aMule (excluding Incoming directory if you want to save space) will do the job just fine.
Title: Re: downloads export facility
Post by: morph on December 12, 2005, 07:41:29 AM
Think about backup: If every night (for example) I'd like to take a backup od downloading files, coping met files become a bit long and prone to concurrent access to these files from amule and backup tool (anyway not sure about this point).

Then, having a single text file instead of a bunch of (many?) met files, make thinkg simpler to manage.

Backup all the temp dir is out of my possibilities, since i don't have 10gb a day for backup... But, if I've half downloaded that file, i could download it again, no care of already downloaded part (even if it will takes longer to complete the file.

So, I could migrate an amule installation easier: export downloads from a machine, copy the generated file to the destination machine, import the file, start downloading.

The mysql reference, is about the output and input: export should write to stdout and import should read from stdin, only this....

Anyway, may Idea starts from the need of a regular backup of download files.

Bye
Title: Re: downloads export facility
Post by: lfroen on December 12, 2005, 01:11:59 PM
Quote
Think about backup:
.met files are quite small, so I don't see major problem here. So you don't want to backup already downloaded data ? Just skip it, take only .met's and configuration files

Quote
Then, having a single text file instead of a bunch of (many?) met files, make thinkg simpler to manage.

"tar -cf myfile.tar *.met" looks like solution, don't you think ? I'm not sure what is the point of having it in text - are you going to edit it ? If not - uuencode it and you'll have it text :)
Title: Re: downloads export facility
Post by: Xaignar on December 12, 2005, 01:28:14 PM
To avoid races, you could run amulecmd with the command "pause all", copy the .met files and then "resume all" ... except that it seems to be broken at the moment.

EDIT: Fixed the "pause all" command, so you can do as I suggested from tomorrow on. ;)