On Wed, Dec 31, 2008 at 9:54 AM, partha chowdhury <[email protected]> wrote:

> I have recently started to learn shell scripting and i am trying to write a
> backup script to backup my /home directory into external usb drive. I need
> suggestion on how to improve the script or to make it more concise.

If you are doing this for the user's /home, it would perhaps be a
safer option not to require that things get dumped into /root etc thus
saving you the trouble of playing around with permissions and the
like.

And, is there a particular reason that you are checking for whether
the user is already logged in ? Nothing specific, was interested in
the UseCase.

-- 
You see things; and you say 'Why?';
But I dream things that never were;
and I say 'Why not?' - George Bernard Shaw
_______________________________________________
Users mailing list
[email protected]
http://lists.dgplug.org/listinfo.cgi/users-dgplug.org

Reply via email to