Re: backup entire system

2011-12-27 Thread Michael Havens
I started partmage  and found out that my filesystem is ext3.
I don't know why I thought that. I only heard that Mint was ext4. oops

On Tue, Dec 27, 2011 at 3:09 PM, Kevin Fries  wrote:

> On Tue, 2011-12-27 at 13:42 -0700, Matt Graham wrote:
> > > On Tue, Dec 27, 2011 at 12:19 AM, Michael Havens 
> wrote:
> > >> I got things just the way I want them. How do I make a mirror image
> of my
> > >> hard drive?
> >
> > This is usually the wrong way to approach backups.[0]  What if your disk
> dies,
> > and you need to restore your stuff onto a disk with a different size?[1]
> > You'll have to mount the images loopback and cp everything over, which
> makes
> > things less simple than you want.
>
> I would have to agree.  I have used several, but most of my experience
> is in networked environments where I generally use BackupPC.  It works
> awesome, and provides a webpage resore process per user/node.
>
> This would work with a central storage system, not so great with a
> removable drive system, but it could be used this way.
>
> Take a look
>
> Kevin
>
> ---
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>



-- 
:-)~MIKE~(-:
---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

Re: How to Restrict a User's Access Using SFTP?

2011-12-27 Thread Eric Cope
Can you change the group of that particular site, then grant access to
your new user to only that group?
Or move your other sites to another group that your new user from
writing to your other sites?

There are other fancy ACL tools, but I was always lazy and controlled
things via groups.

Another idea is to use Git (user pushes to git server with a
post-receive hook that pushes to your production server). And you get
the added benefit of easy roll backs since its all in version control.
http://progit.org/book/ch7-3.html

Eric

On Tue, Dec 27, 2011 at 10:46 PM, Mark Phillips
 wrote:
> I need to give a user access to my web server via sftp to upload web site
> changes. What is the best way to do this? I have several other sites on the
> same server, so I want to prevent them or anyone else who gains access to
> their account from being able to make changes to those sites or other parts
> of the server.
>
> Thanks,
>
> Mark
>
> ---
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


How to Restrict a User's Access Using SFTP?

2011-12-27 Thread Mark Phillips
I need to give a user access to my web server via sftp to upload web site
changes. What is the best way to do this? I have several other sites on the
same server, so I want to prevent them or anyone else who gains access to
their account from being able to make changes to those sites or other parts
of the server.

Thanks,

Mark
---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

Re: backup entire system

2011-12-27 Thread Kevin Fries
On Tue, 2011-12-27 at 13:42 -0700, Matt Graham wrote:
> > On Tue, Dec 27, 2011 at 12:19 AM, Michael Havens  wrote:
> >> I got things just the way I want them. How do I make a mirror image of my
> >> hard drive?
> 
> This is usually the wrong way to approach backups.[0]  What if your disk dies,
> and you need to restore your stuff onto a disk with a different size?[1] 
> You'll have to mount the images loopback and cp everything over, which makes
> things less simple than you want.

I would have to agree.  I have used several, but most of my experience
is in networked environments where I generally use BackupPC.  It works
awesome, and provides a webpage resore process per user/node.

This would work with a central storage system, not so great with a
removable drive system, but it could be used this way.

Take a look

Kevin

---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


Re: backup entire system

2011-12-27 Thread Matt Graham
> On Tue, Dec 27, 2011 at 12:19 AM, Michael Havens  wrote:
>> I got things just the way I want them. How do I make a mirror image of my
>> hard drive?

This is usually the wrong way to approach backups.[0]  What if your disk dies,
and you need to restore your stuff onto a disk with a different size?[1] 
You'll have to mount the images loopback and cp everything over, which makes
things less simple than you want.

>> What do you all recommend? You know, on the first page about this
>> one of the programs is partimage and they say that one of the
>> limitations of it is that it does not support ext4

ext4 is still in development.  I can't think of any advantages ext4 would
offer the home user right now.  But what I'd recommend is to just back up the
things that need to be backed up.  It's so easy to install a system and
bootloader now that I'd just back up /home , /usr/local , and possibly /etc . 
That said:  rsync.  rsyncing my ~ to an external USB2 disk takes a couple of
minutes, which is a lot faster than almost anything else I could think of. 
(The initial sync to the blank disk took about an hour, as 110G is kind of a
lot of data.)  And the rsynced disk can be mounted anywhere[2], and its dir
structure is exactly like my ~s, so I can quickly find that copy of
~/junk/importantstuff/ that I mistakenly rm -rf'ed earlier.

From: Stephen 
> I would use clonezilla (http://clonezilla.org/) to make a "initial
> system image" (its really partimage and DD wrapped up in a series of
> easy scripts)

This'll take a whole lot longer than rsyncing things, especially if partimage
doesn't grok ext4 and falls back on dd.  Backups should be as convenient as
possible, so you can do them often without saying "@#$%ing backups take too
long!"  I'd only use partimage for things like NTFS partitions, where not
everything is a file.

Or you could do a hybrid approach:  "fdisk -l /dev/sda >
/mnt/backup/fdisk.txt", use partimage on /boot , and use rsync for the rest of
the partitions.  

[0] Unless you're doing softRAID-1, which isn't a backup plan, but an "in case
of disk failure" plan.
[1] Even disks that are the same size can have different C/H/S geometries,
though this is a lot less common than it used to be.
[2] So long as you have a Linux box.

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see

---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


Re: backup entire system

2011-12-27 Thread Stephen
I would use clonezilla (http://clonezilla.org/) to make a "initial
system image" (its really partimage and DD wrapped up in a series of
easy scripts) or you can use redo as a live cd
(http://redobackup.org/) which is a great disk cloning tool, but it
does not play nice with windows file systems, or at least i have not
figured it out yet. Then you can use rsync to keep your critical user
files backed up (even across multiple systems to a central location)
and you now have wicked fast disaster recovery.

On Tue, Dec 27, 2011 at 12:19 AM, Michael Havens  wrote:
> I got things just the way I want them. How do I make a miiror image of my
> hard drive? dd? Or is there a more user friendly way? I kinda want to do it
> like a raid  would do it. You know where I would just recopy the image
> if my computer gets corrupted and it would be like the day I made the
> image.. h google it! I found system rescue cd!
> (http://www.sysresccd.org/Main_Page) DOes this sound good? What do you all
> recommend? You know, on the first page about this one of the programs is
> partimage and they say that one of the limitations of it is that it does not
> support ext4 filesystem. hm after a bit of reading me thinks this
> doesn't work with ext4 even though the 'Main Page' says it does. Do any of
> you know any differently?. hm. I've been looking but all of the
> copy programs say  they support ext2 & 3 but not 4. What do you say?
>
> --
> :-)~MIKE~(-:
>
> ---
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



-- 
A mouse trap, placed on top of your alarm clock, will prevent you from
rolling over and going back to sleep after you hit the snooze button.

Stephen
---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss