LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-16-2017, 10:07 AM   #1
SBFree
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 68

Rep: Reputation: 15
WRITE ONLY MEMORY or where did my backup go?


Hi:

Did my backup go to nowhere?

I built a NAS with OpenMediaVault. Things were going well and I decided to make a backup. The system drive has two partitions, and there are a pair of drives as a raid mirror (three drives total). On the system drive one partition is where OMV runs and the other partition I thought I sent a backup image using fsarchiver by sending the file to /mnt/backup with the command:

fsarchiver savefs /mnt/backup/alpha.fsa /dev/sdb1

When I went to make the second backup I could not find the first.

alpha.fsa didn't get stored on the partition and the next time I used a similar command but preceded it with:

mkdir /backup
mount /dev/sdb1 /backup
then
fsarchiver savefs /mnt/backup/bravo.fsa /dev/sdb1

bravo.fsa appears on the partition named backup

Thanks for any replies,
scott
 
Old 02-16-2017, 11:05 AM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,652

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
You need to mount a device before you can read/write to its file system.
So the second attempt was correct.

It's strongly recommended that you unmount the device (umount command) when you have finished with it.
This will ensure that all writes are flushed to the device.

You can automate this by listing devices in /etc/fstab - there are tutorials on this.
 
1 members found this post helpful.
Old 02-16-2017, 11:05 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,439
Blog Entries: 13

Rep: Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759Reputation: 3759
That appears to be a correct command, the first version you've used. I've not used fsarchiver, however have you looked at their Quick Start Guide?

It might be helpful to cite the version of fsarchiver you are using. Check the ownership of the mounted file system, and determine whether or not you need to use sudo to be able to successfully complete the archive action.
 
1 members found this post helpful.
Old 02-16-2017, 05:28 PM   #4
SBFree
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 68

Original Poster
Rep: Reputation: 15
Thank you JeremyBoden & rtmistler. I'll remember to UMOUNT too. I'm still surprised the fsarchiver did not provide an error writing to a device that was not mounted.
 
  


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
LXer: dd Utility - Write and Backup Operating System IMG files on Memory Card with Mac OS X LXer Syndicated Linux News 0 02-26-2015 03:33 AM
How do I write script to backup nhrdls Linux - General 6 08-18-2013 07:43 PM
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 09:52 AM
how to write a backup script? joseph2020 Ubuntu 12 06-15-2009 02:36 PM
Backup script to write to file? ctroyp Linux - Newbie 13 01-10-2006 07:15 PM

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

All times are GMT -5. The time now is 05: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration