Rclone for aws efs to ebs drive

hello there ,

I am trying to backup an Aws EFS filesystem dir to EBS drive and when i run the command it shows my config is not correct. I did a rclone config and there is no option for efs.

my question is :
how to set up config for rclone ?
does rclone support EFS ?

1./opt/rclone-v1.37-linux-amd64/rclone copy source:/efs/reference/xx/yy/zz/* dest:/backup/test/
2017/10/14 03:19:44 NOTICE: Config file “/root/.config/rclone/rclone.conf” not found - using defaults

2./opt/rclone-v1.37-linux-amd64/rclone copyto source:/efs/reference//xx/yy/zz/* dest:/backup/test/
2017/10/14 03:22:32 NOTICE: Config file “/root/.config/rclone/rclone.conf” not found - using defaults
2017/10/14 03:22:32 Failed to create file system for “source:/efs/reference//xx/yy/zz/”:

–config=/opt/rclone-v1.37-linux-amd64/
2017/10/14 17:32:07 Failed to load config file “/opt/rclone-v1.37-linux-amd64/”: read /opt/rclone-v1.37-linux-amd64/: is a directory

rclone config
2017/10/16 12:26:46 NOTICE: Config file “/root/.config/rclone/rclone.conf” not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

I don’t think EFS has an API (unlike for instance microsoft azure files which does) so I think you will have to mount it on an instance.

Likewise my understanding of EBS is you’ll have to mount it and make a file system.

Rclone could be used to back up EFS to S3 if you mounted the EFS on an EC2 instance and then used rclone to copy it to S3.

I have mounted both efs and EBS(backup drive) on the same aws ec2 node.

root@ip-:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 99G 9.1G 86G 10% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 12K 2.0G 1% /dev
tmpfs 396M 496K 395M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 0 2.0G 0% /run/shm
none 100M 0 100M 0% /run/user
EFS-IP:/ 8.0E 30T 8.0E 1% /efs
/dev/xvdn 9.8G 274M 9.0G 3% /backup/test

You can use rclone like this then

rclone -v  copy /efs/reference/xx/yy/zz/ /backup/test/

But you aren’t using any cloud storage at this point, so you could equally well use rsync, or even cp

1 Like