1164 pointsLike some sort of WPMU DEV God"Mindblowingly helpful memberLifetime member
Mark de Scande
Member par excellence
—
9th February 2012 (3 months ago)
Guys and girls please i am not asking you to do this i am just asking you to help me out that is it
Sorry for my strong wording at the top
I need to COPY with SSH
Here is the problem
I want to copy the contents of DirA to DirB
Ie:
cd /dbsetup/mysql/
cp -Rf blogline_0 /backupdrive/bloglinesdbsetup
This problem is with this command it will only take the folder with it contents and place it in bloglinesdbsetup i want it to take the contents of blogline_0 and please it in bloglinesdbsetup this way i can take all 17 dbs and make it in to one big DB
1164 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Member par excellence
—
9th February 2012 (3 months ago)
#
Guys and girls please i am not asking you to do this i am just asking you to help me out that is it
Sorry for my strong wording at the top
I need to COPY with SSH
Here is the problem
I want to copy the contents of DirA to DirB
Ie:
cd /dbsetup/mysql/
cp -Rf blogline_0 /backupdrive/bloglinesdbsetup
This problem is with this command it will only take the folder with it contents and place it in bloglinesdbsetup i want it to take the contents of blogline_0 and please it in bloglinesdbsetup this way i can take all 17 dbs and make it in to one big DB
5596 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Support Kangaroo
—
9th February 2012 (3 months ago)
#
Greetings Mark de Scande,
How are you?
This problem is with this command it will only take the folder with it contents and place it in bloglinesdbsetup i want it to take the contents of blogline_0 and please it in bloglinesdbsetup this way i can take all 17 dbs and make it in to one big DB
Could you please clarify what your wanting to accomplish?
When trying to guess what you are trying to do, I think you are trying to move the contents (files) of all 17 database folders into one folder?
1164 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Member par excellence
—
9th February 2012 (3 months ago)
#
Spot on and thank you for helping :) yes how do i do this I think you are trying to move the contents (files) of all 17 database folders into one folder?
Ps please dont tell me to use MySQL Dump it wont work
1164 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Member par excellence
—
9th February 2012 (3 months ago)
#
@Tanmay
1) It took a copy of the folder and its contents
cd /backupdrive/
cp -Rp Patrick /backupdrive/testsetup
2) But it did not do what we wanted it to do to take a copy of the contents of Patrick and then place the contents all the files inside /backupdrive/testsetup/
Responses (12)
Support Kangaroo — 9th February 2012 (3 months ago) #
Greetings Mark de Scande,
How are you?
Could you please clarify what your wanting to accomplish?
When trying to guess what you are trying to do, I think you are trying to move the contents (files) of all 17 database folders into one folder?
Cheers, Joe :-)
Member par excellence — 9th February 2012 (3 months ago) #
Spot on and thank you for helping :) yes how do i do this
I think you are trying to move the contents (files) of all 17 database folders into one folder?
Ps please dont tell me to use MySQL Dump it wont work
Member — 9th February 2012 (3 months ago) #
Hello @Mark de Scande,
try using -Rp argument.
cp -Rp blogline_0 /backupdrive/bloglinesdbsetupYou will require root access to for this.
Hope this will help. Let us know.
Take care. :)
Member par excellence — 9th February 2012 (3 months ago) #
@Tanmay Thank You
Will this work as i just want to copy the data and leave the original were it is :)
Member — 9th February 2012 (3 months ago) #
Greetings @Mark de Scande,
If it was a question, then answer is yes. :) This will leave the original as it is.
Try it out and let me know.
Take Care.
Member par excellence — 9th February 2012 (3 months ago) #
@Tanmay
1) It took a copy of the folder and its contents
cd /backupdrive/
cp -Rp Patrick /backupdrive/testsetup
2) But it did not do what we wanted it to do to take a copy of the contents of Patrick and then place the contents all the files inside /backupdrive/testsetup/
@Tanmay thank you for helping
Member par excellence — 9th February 2012 (3 months ago) #
@Tanmay Thank you can you ma by test this for me please :)
This worked but can any please confirm this for me
cp /backupdrive/Patrick/* /backupdrive/testsetup/
Member par excellence — 9th February 2012 (3 months ago) #
Got the info from here http://en.wikipedia.org/wiki/Cp_(Unix)
Member — 9th February 2012 (3 months ago) #
Hey @Mark de Scande
Try this
This might work. Let me know if it does.
- Tanmay :)
Member — 9th February 2012 (3 months ago) #
@Mark de Scande
Hadn't refreshed this page, so didn't see last two posts, but finally we came up with same thing. :)
Yes it will do the job.
Take care.
Member par excellence — 9th February 2012 (3 months ago) #
@Tanmay some rep point your way :) ps add me to FaceBook some time Mark de Scande BlogLines
Member — 9th February 2012 (3 months ago) #
@Mark de Scande
Thank you. I will add you for sure.
Glad to help you.
Have a nice day. :)
Become a member