Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Backupping my root filesystem w/o restarting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Sfynx
n00b
n00b


Joined: 01 Jun 2002
Posts: 50

PostPosted: Fri Jul 05, 2002 8:37 pm    Post subject: Backupping my root filesystem w/o restarting Reply with quote

I want to make regular backups, preferably with tar, of the root filesystem of my little Gentoo server. This is the drive config:

/dev/hda1: boot, 7.8MB
/dev/hda2: swap, 36MB
/dev/hda3: root, 790MB

I have a fully working smbfs mountpoint on /mnt/backup to a Windows share where the backup is to be placed.

The root filesystem (/dev/hda3) is active and mounted and I want to get it remounted as read-only before safely performing the backup procedure (to prevent that it is being changed while backupping). After the backup, it should be remounted read-write again, thereby resuming normal server operation.

The problem is that I cannot get it properly remounted. / is in use, also after unmounting all the stuff in fstab... and devfs.

I know it is possible to make another root partition that contains a backup procedure to have the bigger root partition unmounted during the backup, but I do not want to restart my server to make a backup if that is possible (I love uptimes! ;)) Does anyone have a suggestion?
_________________
I'm the great Cornholio!
Are you threatening me?
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Sat Jul 06, 2002 12:36 am    Post subject: Reply with quote

man mount.

"mount -o remount,ro /"
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum