Page 1 of 1
Leave original files
Posted: 13 Dec 2013, 02:11
by badgerbailey
Hello, I have been using the AMC script to sort out my downloads folder on my home media server, I have a setup where files are transfered from my seedbox via rsync to my downloads folder, then the AMC script moves them between tv shows and movies, the problem is, when filebot moves them then rsync thinks they don't exist so has to download them again, is there anyway to make filebot only copy the files instead of move them so rsync does not keep downloading them, I know the better way would be to make rsync not redownload them but I am unable to find a way to do this as if rsync does not see them then it will automatically re-download them.
Hope this makes sense and thanks in advance,
Badgerbailey
Re: Leave original files
Posted: 13 Dec 2013, 04:37
by rednoah
0. Don't use --action move then?
1. Copy
2. Create symbolic links (better than copy but may not work depending on how rsync treats symlinks)
3. Create hard links (create another filesystem entry that points to the same data on disk, i.e. 2 paths that are the same file)
Re: Leave original files
Posted: 13 Dec 2013, 04:53
by badgerbailey
Great,
sometimes the simplest things are staring at you in the face

I like the idea of using symbolic links, but when I delete the original file from the downloads folder will it also delete the symbolic link or will this just appear as dead on my media player?
Re: Leave original files
Posted: 13 Dec 2013, 05:05
by rednoah
Depends on what you want...
--action symlink source will be the file, destination will be the link
--action keeplink source will be the link, destination will be the file (I guess this is what you'd prefer)
You'll always have to delete file and link. But for links you can easily write a script to find and delete broken links.
Re: Leave original files
Posted: 13 Dec 2013, 07:06
by badgerbailey
Hello again,
sorry to be a pain, here is the original script from filebot that I was using:
filebot -script fn:amc --output "/home/gordon" -non-strict "/home/gordon/downloads/completed"
Where would I put the "action --copy" command in there?
Thanks in advance,
Badgerbailey
Edit: I found that adding -non-strict action --copy fixes this issue, however, i realised that some files are not getting copied, when I tried to do each file manually I get errors like the following: SevenZipException: HRESULT: 0x1 (FALSE). Error extracting -1 element(s). Result: 1
What could be causing this?
Thanks
Re: Leave original files
Posted: 13 Dec 2013, 10:40
by rednoah
It's --action copy, and you can just add it at the end.
The error just means that the archive is corrupt, or password protected, or just can't be extracted for some reason. Nothing you can do about this.