A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Write for DigitalOcean
You get paid, we donate to tech non-profits.
Find and meet other developers in your city.
Contribute to Open Source
Can i copy one block storage data to another block storage?
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
You can attach multiple Block Storage volumes to the same droplet (up to 5 volumes).
Then you could attach another volume to your current droplet, and configure it as another device in Ubuntu, and then copy data with the regular cp command.
Actually i have an 2 droplet and both have an different different block storage so i want to copy one droplet block storage data to second droplet block storage.
or else how to access one droplet block storage to second droplet.
Ahhh, then it’s much more simple. Keep everything as it is now. I would recommend that you go to the control panel and take a snapshot before copying data around.
You can use the command scp, which creates a SSH tunnel and then copies data.
Login to the droplet you want to copy data from.
scp -pr /path/from user@droplet-ip-address:/path/to/
#scp -pr /volume-old/photos firstname.lastname@example.org:/volume-keep/media/
Actually i can’t able to login this droplet because it is under Ddos attack. But i have an snapshot of the block storage.
Uhm, okay, then detach the volume from the DDoS-droplet and then attach it to the working droplet, mount the volume in your OS, and then just use the cp command.
okay thnx @hansen
You can type !ref in this text area to quickly search our full set of tutorials, documentation &
marketplace offerings and insert the link!
I have understood that I can block countries through CSF, but for example I have blocked access from China using CN, but I see in the log exim no authentication attempts from China, as I can block 100% of traffic from countries using CSF?
I'm about to host a new WordPress blog having a majority of traffic from Australia and USA, can you guys please suggest me Which data center location will be the best to host a website having a majority of traffic from Australia and USA?
After uploading a theme, I activated it and it popped up a "Server Error 500". I tried to remove the themes and plugins on the WP that I just got, as suggested by some other posts. But it's still giving me the same error and I still cannot access the site. What should I do?
I have been following this tutorial to get a simple Python app working with NGINX and uwsgi on an Ubuntu server
I managed to get the 'hello' part to display on my ip at port 8080 as requested but then at the end when I am supposed to be able to see that text on the ip and not just port 8080 I get a 502 bad gateway error.
I have been over the code many times and for hrs as well as reading other threads here and on places like Stackoverflow and nothing seems to work. Some people have suggested changing the chmod-socket from 664 to 666 or 600 and neither of those work.
I have been reading this similar thread too
it seems this person has a slightly different nginx con file setup but when Ive tried adding the things such as this to my con file
$ exec uwsgi --ini app.ini
it still doesn't work, however if I run that command in my terminal I can get the 'Hello there!' text to appear on all ports but according to the tutorial Im not supposed to have to run that to get it to work. When I do run that it seems to spawn multiple workers also (not sure if its supposed to do that) and this is the output
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x22a37d0 pid: 17920 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 17920)
spawned uWSGI worker 1 (pid: 17940, cores: 1)
spawned uWSGI worker 2 (pid: 17941, cores: 1)
spawned uWSGI worker 3 (pid: 17942, cores: 1)
spawned uWSGI worker 4 (pid: 17943, cores: 1)
spawned uWSGI worker 5 (pid: 17944, cores: 1)
this is my nginx log output and it looks like there is a problem with the sock file
[crit] 17492#0: *1 connect() to unix:///home/david/myapp/myapp.sock failed (2: No such file or directory) while connecting to upstream, client: 184.108.40.206, server: 220.127.116.11, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:///home/david/myapp/myapp.sock:", host: "128.199.97..37"
but I dont know how to fix this, all that is mentioned in the tutorial is that the mayor.ini file should have this line in
$ socket = myapp.sock
which my .ini file has, so what is going on here? Is the sock file not being created or something?
I should add that nginx, uwsgi and my app are all running