Downloading a Redis Backup file from my server to my laptop

24 views
Skip to first unread message

how...@xmission.com

unread,
Feb 20, 2018, 2:57:31 AM2/20/18
to Redis DB
Hi,

Newbie question:

I use Redis as the Database for my NodeBB forum on a Digital Ocean droplet.

I've saved a "dump.2018-02-20.rdb" file in my home directory in the Droplet. I'm going to create a new Droplet and install NodeBB on it.

I want to download the "dump.2018-02-20.rdb" file to my laptop so that I can upload it later and use it for the new NodeBB forum. 

I haven't been able to download it using "scp" or via Cyberduck because of "Permission denied" errors.

How do I accomplish this ? 

Or is there a better method for doing this ?

Thanks.

Howard

yijie kang

unread,
Feb 20, 2018, 3:32:53 AM2/20/18
to redi...@googlegroups.com
Hello Howard,

I think your "scp" might use a error path. For example, you try to "scp" in "/root",but you don't have the permission if you are not "root".
It's just my guess,because I have meet same error. 

Maybe only root has the "dump.2018-02-20.rdb" file 's permission  if you use "root" exec "redis-server".

If not deal your problem, you should explain more information.

Regards,
Jack


--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

how...@xmission.com

unread,
Feb 20, 2018, 12:44:07 PM2/20/18
to Redis DB


On Tuesday, February 20, 2018 at 1:32:53 AM UTC-7, Jack Kang wrote:
Hello Howard,

I think your "scp" might use a error path. For example, you try to "scp" in "/root",but you don't have the permission if you are not "root".
It's just my guess,because I have meet same error. 

Maybe only root has the "dump.2018-02-20.rdb" file 's permission  if you use "root" exec "redis-server".

If not deal your problem, you should explain more information.

Regards,
Jack

_____

@ Jack

Thanks for your interest.

When I tried to scp the file to my laptop, I was logged-in as a User, not Root. I did use "sudo" and provided my password for the action. 

Using Cyberduck (as a User) , I see the following permissions for the file in one Tab:

Unix permissions 640

Owner Read, Write
Group Read
Others None

In another Tab, I see "Unknown" for  Owner and Group.

Does that help ?

Howard
 

how...@xmission.com

unread,
Feb 20, 2018, 11:27:31 PM2/20/18
to Redis DB
Update:

I successfully transferred the file via scp to another remote server I have, and from there to my laptop.

I don't know why my previous attempts (detailed above) didn't work.

I may have typed something incorrectly.

Cheers!

____
Reply all
Reply to author
Forward
0 new messages