Re: [Dorset] Exclude hidden folder in rsync

2017-08-21 Thread Tim
On 20/08/17 21:58, Ralph Corderoy wrote: Hi Tim, I want to compress my rsynced home folder, I want the video folder in the final compressed file but I don't want tar to try and compress it as it compresses the rest of the home folder, does that make sense? Yes, but it can't be done. tar(1)

Re: [Dorset] Exclude hidden folder in rsync

2017-08-20 Thread Patrick Wigmore
> > I want to compress my rsynced home folder, I want the video > > folder in the final compressed file but I don't want tar to > > try and compress it as it compresses the rest of the home > > folder, does that make sense? > > Yes, but it can't be done. Unless you are prepared to accept two

Re: [Dorset] Exclude hidden folder in rsync

2017-08-20 Thread Ralph Corderoy
Hi Tim, > I want to compress my rsynced home folder, I want the video folder in > the final compressed file but I don't want tar to try and compress it > as it compresses the rest of the home folder, does that make sense? Yes, but it can't be done. tar(1) creates a tar file, and that's a simple

Re: [Dorset] Exclude hidden folder in rsync

2017-08-20 Thread Tim
On 20/08/17 16:12, Tim wrote: On 20/08/17 11:16, Ralph Corderoy wrote: Hi Tim, what is the correct phrase to stop rsync from copying the cache folder? Hard to say what you're doing wrong without an example. It works for me. $ find src | sort src src/bar src/bar/file1

Re: [Dorset] Exclude hidden folder in rsync

2017-08-20 Thread Tim
On 20/08/17 11:16, Ralph Corderoy wrote: Hi Tim, what is the correct phrase to stop rsync from copying the cache folder? Hard to say what you're doing wrong without an example. It works for me. $ find src | sort src src/bar src/bar/file1 src/.cache

Re: [Dorset] Exclude hidden folder in rsync

2017-08-20 Thread Ralph Corderoy
Hi Tim, > what is the correct phrase to > stop rsync from copying the cache folder? Hard to say what you're doing wrong without an example. It works for me. $ find src | sort src src/bar src/bar/file1 src/.cache src/.cache/file1 src/file1 src/foo

[Dorset] Exclude hidden folder in rsync

2017-08-20 Thread Tim
I have a hidden folder in my home folder called .cache . I want to block this ".cache" folder from being backed up (or the source and destination folders being synced if you prefer). I have tried many permutations but it is still synced when I run the script, what is the correct phrase to