LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2017, 10:52 AM   #46
AB49K
LQ Newbie
 
Registered: Mar 2017
Location: Australia
Distribution: CentOS, OpenSuse, Ubuntu, Debian.
Posts: 26

Rep: Reputation: Disabled

Quote:
Originally Posted by Jay1969 View Post
No, it did not. See screenshots. I created the 'dump' folder yesterday through Windows. What would the command to try to copy in that folder?

I would guess:

sudo rsync -avzc dump/externalhdd/vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo /var/lib/vzbackup --progress

Please confirm.
Okay, just to be sure, you are running this on the NEW server with one HDD that you imaged with clonezilla?
 
Old 04-05-2017, 10:57 AM   #47
Jay1969
Member
 
Registered: Mar 2017
Posts: 35

Original Poster
Rep: Reputation: Disabled
No, sir. I am trying to copy the backups from our current server to the XHDD in order to copy them on the new server I imaged with Clonezilla.

I have not even been able so far to get a single .lzo file out of our current server.
 
Old 04-05-2017, 11:02 AM   #48
AB49K
LQ Newbie
 
Registered: Mar 2017
Location: Australia
Distribution: CentOS, OpenSuse, Ubuntu, Debian.
Posts: 26

Rep: Reputation: Disabled
"rsync -avzc /datapool/backups-compressed/vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo /externalhdd/dump/ --progress"

That should be the one you're after
Just make sure that the backup you're grabbing is a recent one, the backup you're listing here is from 11/11/2016 so yeah. If you want to pull all backups of that VM, do

"rsync -avzc /datapool/backups-compressed/vzdump-qemu-100-*.lzo /externalhdd/dump/ --progress"

Just keep in mind, you only need one to restore from. Just do a "ls -l /datapool/backups-compressed" and find the latest one that starts with "vzdump-qemu-100" then replace vzdump-qemu-100-2016_11_11-09_30_41.vma.lzo with whatever the latest one is.
 
Old 04-05-2017, 11:05 AM   #49
Jay1969
Member
 
Registered: Mar 2017
Posts: 35

Original Poster
Rep: Reputation: Disabled
Awesome. I will get them all out at once. Peace of mind. Will get back to you tomorrow.

Thanks a million, AB49K.
 
Old 04-05-2017, 11:52 AM   #50
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
My 2 cents ...

The output of the ls -l command definitely shows that even root does not have write permissions on that external hdd. Before telling you how to correct that, perhaps AB49K has comments on this ?

If not, the command to give root write permissions would be:

Code:
chmod -R 0775 /externalhdd
 
Old 04-05-2017, 12:16 PM   #51
AB49K
LQ Newbie
 
Registered: Mar 2017
Location: Australia
Distribution: CentOS, OpenSuse, Ubuntu, Debian.
Posts: 26

Rep: Reputation: Disabled
Quote:
Originally Posted by Rickkkk View Post
My 2 cents ...

The output of the ls -l command definitely shows that even root does not have write permissions on that external hdd. Before telling you how to correct that, perhaps AB49K has comments on this ?

If not, the command to give root write permissions would be:

Code:
chmod -R 0775 /externalhdd
No need to chmod anything, root *always* has rw access you can't chmod rw access away from root.

I think the problem is most likely missing the trailing slash in the command I wrote out before. rsync can be funny sometimes.
 
Old 04-05-2017, 01:06 PM   #52
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by AB49K View Post
No need to chmod anything, root *always* has rw access you can't chmod rw access away from root.

I think the problem is most likely missing the trailing slash in the command I wrote out before. rsync can be funny sometimes.
OK - I was perplexed at the output of that command ... I am totally unfamiliar with rsync, so will leave you to it.

Thx for the feedback - Cheers :-)
 
Old 04-05-2017, 01:19 PM   #53
AB49K
LQ Newbie
 
Registered: Mar 2017
Location: Australia
Distribution: CentOS, OpenSuse, Ubuntu, Debian.
Posts: 26

Rep: Reputation: Disabled
Sometimes file systems like NTFS will report weird permissions because it doesn't properly support unix permissions (Don't be quoting me on that though). and I think it's a NTFS partition because it still has the default .exe's and .ini's on it.
 
Old 04-05-2017, 01:44 PM   #54
Jay1969
Member
 
Registered: Mar 2017
Posts: 35

Original Poster
Rep: Reputation: Disabled
It seems to be working!

I used: "rsync -avzc /datapool/backups-compressed/vzdump-qemu-100-*.lzo /externalhdd/dump/ --progress"
Attached Thumbnails
Click image for larger version

Name:	IMG_20170405_1441375.jpg
Views:	16
Size:	185.9 KB
ID:	24686  
 
Old 04-05-2017, 01:52 PM   #55
AB49K
LQ Newbie
 
Registered: Mar 2017
Location: Australia
Distribution: CentOS, OpenSuse, Ubuntu, Debian.
Posts: 26

Rep: Reputation: Disabled
Just keep in mind when copying to the new server you only want the latest backup, any more is kind of useless, as you will only want the latest to restore from.
 
Old 04-05-2017, 01:55 PM   #56
Jay1969
Member
 
Registered: Mar 2017
Posts: 35

Original Poster
Rep: Reputation: Disabled
Agreed, although by experience, I just prefer to have the whole set so if the latest fails or gets corrupted, I can cascade to the next one on the list. Will get back to you tomorrow.
 
Old 04-05-2017, 08:17 PM   #57
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,512

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
Quote:
Originally Posted by Jay1969 View Post
Agreed, although by experience, I just prefer to have the whole set so if the latest fails or gets corrupted, I can cascade to the next one on the list. Will get back to you tomorrow.
That, and securing extra copies of your backups never hurt. It is always when you have one to FEW that it gets painful.
 
1 members found this post helpful.
Old 04-06-2017, 09:16 AM   #58
Jay1969
Member
 
Registered: Mar 2017
Posts: 35

Original Poster
Rep: Reputation: Disabled
Got in this morning to find out that the files were not copied to the XHDD. Annoyed, I formatted the drive to exFAT. I launched a copy of the smallest file — SUCCESS! Screenshots are attached.

Now, I need to unmount the XHDD before doing anything else, right? So I ran "umount /dev/sd** /externalhdd/", and I get a message that neither /dev/sd** or /externalhdd/ are mounted?!?

...

Can I just pull out the USB cable?
Attached Thumbnails
Click image for larger version

Name:	IMG_20170406_0839494.jpg
Views:	20
Size:	254.2 KB
ID:	24697   Click image for larger version

Name:	IMG_20170406_1003081.jpg
Views:	14
Size:	248.2 KB
ID:	24698  
 
Old 04-06-2017, 09:46 AM   #59
AB49K
LQ Newbie
 
Registered: Mar 2017
Location: Australia
Distribution: CentOS, OpenSuse, Ubuntu, Debian.
Posts: 26

Rep: Reputation: Disabled
Hi Jay,

When you umount you don't need to supply the directory. just "umount /dev/sdX"

Just a quick thing, in your command, at the end of /externalhdd/dump add a "/" at the end. "externalhdd/dump/" rsync will sometimes spit the dummy without it. Not really sure why.
 
Old 04-06-2017, 09:48 AM   #60
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,770

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
That first image doesn't show any "success" -- only failures due to a read-only filesystem. I think you posted the wrong image.

The "umount" command wants one argument -- either the device or the mount point. When you give it more than one argument, it processes each in turn. In this case, it unmounted /dev/sde1, then tried to unmount /externalhdd/, which failed because it was already unmounted. Then you tried to unmount /dev/sde1 again, which failed for the same reason. It's umounted. You can disconnect the drive.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why are user credentials not being passed to server at time of login? rajevar Linux - Newbie 2 09-24-2009 03:57 PM
Using C API; first query passed passed by program to MySQL is successful, second quer weibullguy Programming 2 06-12-2007 10:45 PM
vpn passed from RH9 firewall to OS X server - not quite MadTurki Linux - Networking 4 02-25-2004 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration