What is the problem you are having with rclone?
rclone sync
I am using rclone rysnc to sync a local folder to a folder path which is mounted to Filestore server.
We have a internal cloned version of rclone library. I am passing Exclude rule to exclude git files as below
indicatorsOpt := &filter.Opt{
MinAge: fs.DurationOff,
MaxAge: fs.DurationOff,
MinSize: fs.SizeSuffix(-1),
MaxSize: fs.SizeSuffix(-1),
ExcludeRule: string{ "/.git/”},
}
fileFilter, err := filter.NewFilter(indicatorsOpt)
open /<directory_path>/.git/objects/pack/pack-b7deb3571b66f08c42bae78b61e5ad1e1ad1c9cc.pack: permission denied
But this does not seem to work, it tries to sync files inside /.git/ repo. I have tried using filter rule, but it did not help.
Any suggestions on how we can avoid the rsync operation from syncing a particular folder?
Run the command 'rclone version' and share the full output of the command.
The repo was imported around 2018, so it is a very old version, only internal libraries are updated but not the rclone code base.
Which cloud storage system are you using? (eg Google Drive)
Local directory in a Kubernetes pod, rsync tries to sync local directory to another directory mounted to GCP Filestore.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
indicatorsOpt := &filter.Opt{
MinAge: fs.DurationOff,
MaxAge: fs.DurationOff,
MinSize: fs.SizeSuffix(-1),
MaxSize: fs.SizeSuffix(-1),
ExcludeRule: []string{ "**/.git/**”},
}
fileFilter, err := filter.NewFilter(indicatorsOpt)
I
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
Default config options are used and nothing specifically is set.
A log from the command that you were trying to run with the -vv
flag
NA