Backup/Rsync/RTRR without full folder hierarchy. (Solved/Closed)

Got a feature request? Great! Post your ideas here!
animaleyes76
Posts: 14
youtube meble na wymiar Warszawa
Joined: Mon Feb 23, 2015 6:32 pm

Backup/Rsync/RTRR without full folder hierarchy. (Solved/Closed)

Post by animaleyes76 »

When i want to create an Rsync/RTRR job across 2 or more NAS servers I often just want the contents of the selected folder to be sync'd / copied (whatever) to the destination folder.

However, if i set up my AS5110T to Rsync some files from /Media/TV to my QNAP NAS /Multimedia/TV folder it creates the path /Multimedia/TV/Media/TV. I don't want this, i just want the contents of /Media/TV to be replicated/copied to /Multimedia/TV!!

It's really annoying. PLEASE can you fix it?
Last edited by animaleyes76 on Wed Mar 25, 2015 6:11 am, edited 1 time in total.
crazynas
Posts: 222
Joined: Mon Feb 16, 2015 10:34 pm

Re: Backup/Rsync/RTRR without full folder hierachy.

Post by crazynas »

Hi
Do you mean can select some file backup to another NAS, right??
Elrique64
Posts: 222
Joined: Wed Feb 26, 2014 5:26 am

Re: Backup/Rsync/RTRR without full folder hierachy.

Post by Elrique64 »

animaleyes76 wrote:When i want to create an Rsync/RTRR job across 2 or more NAS servers I often just want the contents of the selected folder to be sync'd / copied (whatever) to the destination folder.

However, if i set up my AS5110T to Rsync some files from /Media/TV to my QNAP NAS /Multimedia/TV folder it creates the path /Multimedia/TV/Media/TV. I don't want this, i just want the contents of /Media/TV to be replicated/copied to /Multimedia/TV!!

It's really annoying. PLEASE can you fix it?
One way to make this work is to name the folders the same on both devices. Either name them both /Multimedia/TV or both /Media/TV.

Then you would actually do the rsync to the level higher than the folders involved, so it would go to /volume1.

The full path would be /volume1/Media/TV or /volume1/Multimedia/TV. This should work pretty well.

If this doesn't work, for some reason, an alternative would be to rsync to a different share point and set up a script to move the contents of the share to the appropriate folders afterwards. The script would have to be run after the rsync job is finished, so you would have to call it only when rysnc says it's done. You might be able to leverage FileBot to do the moving. I haven't done the scripting myself, but if you look on-line for move scripts for Ubuntu Linux I'm sure you will find something.
crazynas wrote:Hi
Do you mean can select some file backup to another NAS, right??
Do you EVER read the posts people make here? It's obvious from the question he is trying to go from an Asustor NAS to a QNap NAS. Do you want someone to diagram this for you, too? It's pretty straight forward! I would hope sometime along the road you might actually have some information... Seems that's not the case, though.
animaleyes76
Posts: 14
Joined: Mon Feb 23, 2015 6:32 pm

Re: Backup/Rsync/RTRR without full folder hierachy.

Post by animaleyes76 »

Elrique64 wrote:
animaleyes76 wrote:When i want to create an Rsync/RTRR job across 2 or more NAS servers I often just want the contents of the selected folder to be sync'd / copied (whatever) to the destination folder.

However, if i set up my AS5110T to Rsync some files from /Media/TV to my QNAP NAS /Multimedia/TV folder it creates the path /Multimedia/TV/Media/TV. I don't want this, i just want the contents of /Media/TV to be replicated/copied to /Multimedia/TV!!

It's really annoying. PLEASE can you fix it?
One way to make this work is to name the folders the same on both devices. Either name them both /Multimedia/TV or both /Media/TV.

Then you would actually do the rsync to the level higher than the folders involved, so it would go to /volume1.

The full path would be /volume1/Media/TV or /volume1/Multimedia/TV. This should work pretty well.

If this doesn't work, for some reason, an alternative would be to rsync to a different share point and set up a script to move the contents of the share to the appropriate folders afterwards. The script would have to be run after the rsync job is finished, so you would have to call it only when rysnc says it's done. You might be able to leverage FileBot to do the moving. I haven't done the scripting myself, but if you look on-line for move scripts for Ubuntu Linux I'm sure you will find something.
crazynas wrote:Hi
Do you mean can select some file backup to another NAS, right??
Do you EVER read the posts people make here? It's obvious from the question he is trying to go from an Asustor NAS to a QNap NAS. Do you want someone to diagram this for you, too? It's pretty straight forward! I would hope sometime along the road you might actually have some information... Seems that's not the case, though.
Hi, thanks for taking the time to reply.

Sadly, even when the path structures match /media/TV > /media/TV the Asustor creates /Media/TV/Media/TV on the QNAP.

Mind you, the QNAP doesn't even see the directory structure on the Asustor so i'm gonna check out the QNAP forum for that.

A script will do for the moment but hopefully they (Asustor) will provide some way to do this via "Backup".

Cheers
:)
Elrique64
Posts: 222
Joined: Wed Feb 26, 2014 5:26 am

Re: Backup/Rsync/RTRR without full folder hierachy.

Post by Elrique64 »

I think it's because you are pointing the rsync job to the /something-path-here/media/TV instead of /some-path-here

You need to point it to the root level of the drive somehow, so the folder structure gets replicated in the same way.

I'm not entirely sure how to do this, as I see there is a similar issue with this duplicated structure being commented on in the backup threads, too.

You may need to get a ticket going on this with Asustor. This shouldn't be happening. You should be able to point it at a drive/directory and things go into it directly, without the other end directory tree being duplicated (2 deep, if you will)

As I don't have another NAS (yet) to test this on I'm not able to provide much more help, sorry... :(
animaleyes76
Posts: 14
Joined: Mon Feb 23, 2015 6:32 pm

Re: Backup/Rsync/RTRR without full folder hierarchy. (Resolved)

Post by animaleyes76 »

Elrique64 wrote:I think it's because you are pointing the rsync job to the /something-path-here/media/TV instead of /some-path-here

You need to point it to the root level of the drive somehow, so the folder structure gets replicated in the same way.

I'm not entirely sure how to do this, as I see there is a similar issue with this duplicated structure being commented on in the backup threads, too.

You may need to get a ticket going on this with Asustor. This shouldn't be happening. You should be able to point it at a drive/directory and things go into it directly, without the other end directory tree being duplicated (2 deep, if you will)

As I don't have another NAS (yet) to test this on I'm not able to provide much more help, sorry... :(
So to fix the hierrarchy thing copying FROM the ASUSTOR to another NAS you need to tick the "Use 1 on 1 folder synchronisation" tickbox (missed it) and you won't get the full path hierarchy from the ASUSTOR.

AWESOME :)

Cheers for all of your helpful input :)
crazynas
Posts: 222
Joined: Mon Feb 16, 2015 10:34 pm

Re: Backup/Rsync/RTRR without full folder hierarchy. (Solved/Closed)

Post by crazynas »

HI
even when the path structures match /media/TV > /media/TV the Asustor creates /Media/TV/Media/TV on the QNAP. -> Do you try other NAS ?? ;)
I think different file hierarchy....
animaleyes76
Posts: 14
Joined: Mon Feb 23, 2015 6:32 pm

Re: Backup/Rsync/RTRR without full folder hierarchy. (Solved/Closed)

Post by animaleyes76 »

crazynas wrote:HI
even when the path structures match /media/TV > /media/TV the Asustor creates /Media/TV/Media/TV on the QNAP. -> Do you try other NAS ?? ;)
I think different file hierarchy....
If you pick "1 to 1 folder synchronisation" you can copy from /media/TV to /media/TV and it doesn't create /Media/TV/Media/TV

In fact you can copy whatever you want, eg /media/TV to /media/Films and it will remain /media/Films just with the files and subdirectories of the /media/TV directory.

Tick the "1 to 1 folder....." tickbox and it works fine.
crazynas
Posts: 222
Joined: Mon Feb 16, 2015 10:34 pm

Re: Backup/Rsync/RTRR without full folder hierarchy. (Solved/Closed)

Post by crazynas »

HI
OK...Have nice day!!! ;)