USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Simple Backup System

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » System Administration and Security
View previous topic :: View next topic  
Author Message
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Fri Mar 28, 2024 7:19 pm    Post subject: Simple Backup System Reply with quote

I'm looking for a simple way to backup my Home Folder on my laptop to my external hard drive. At present I just copy the contents manually when I remember to do it Embarassed I have had a look at several programs but they all seem to create an archive and all I want is to automate the copying process without creating an archive. Also after creating the initial backup I I want to just backup any new files or files that have been changed since the last backup.



_________________
Windows Vista / Ubuntu 8.10
Back to top
View user's profile Send private message
mmmna
. . . .


Joined: 21 Apr 2024
Posts: 7224

PostPosted: Fri Mar 28, 2024 9:38 pm    Post subject: Reply with quote

tar does incremental backups, wouldn't something like a timer applet be able to be configured to fire off a tar command? Or maybe use the at daemon?



_________________
-Kubuntu 10.04 LTS Beta2 on Celeron D desktop
-PCLinuxOS 2024 LXDE on EeePC 900A with Atom n270 (modded with 32G SATA drive and 2G ram).
Back to top
View user's profile Send private message
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Fri Mar 28, 2024 10:29 pm    Post subject: Reply with quote

mmmna wrote:
tar does incremental backups, wouldn't something like a timer applet be able to be configured to fire off a tar command? Or maybe use the at daemon?


I can't use something like a timer as I'm backing up my laptop to an external drive which isn't always attached. So what I want is something I can run when I connect the drive.



_________________
Windows Vista / Ubuntu 8.10
Back to top
View user's profile Send private message
VHockey86
Advanced Member


Joined: 12 Dec 2024
Posts: 988
Location: Rochester

PostPosted: Fri Mar 28, 2024 11:29 pm    Post subject: Reply with quote

Write a small bash script that runs as a daily / weekly CRON job? You could have it check if the external hard drive is connected (grep the /etc/mtab file for the mount point) and if so, continue with a file copy or incremental tar or rsync or whatever.



_________________
Main Desktops : Kubuntu 10.4. ArchLinux 64-bit. Windows7 64-bit. Windows XP 32-bit.

MacBook: OS X Snow Leopard (10.6)
Back to top
View user's profile Send private message
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Sat Mar 29, 2024 7:04 am    Post subject: Reply with quote

VHockey86 wrote:
Write a small bash script that runs as a daily / weekly CRON job? You could have it check if the external hard drive is connected (grep the /etc/mtab file for the mount point) and if so, continue with a file copy or incremental tar or rsync or whatever.


That was one of my thoughts but as I have never written anything like that I put the idea to one side.



_________________
Windows Vista / Ubuntu 8.10
Back to top
View user's profile Send private message
Pet3M0ss
Advanced Member


Joined: 18 Sep 2024
Posts: 738
Location: NW corner of Montana (Libby)

PostPosted: Sat Mar 29, 2024 10:28 am    Post subject: Reply with quote

Surprised I no sickum about archiving with tar, so I did a "man tar". This is at the end:
Quote:
The GNU folks, in general, abhor man pages, and create info documents instead. The maintainer of tar falls into this category.
This man page is neither complete, nor current, and was included in the Debian Linux packaging of tar entirely to reduce the fre-
quency with which the lack of a man page gets reported as a bug in our defect tracking system.

If you really want to understand tar, then you should run info and read the tar info pages, or use the info mode in emacs.

22 September 1993 TAR(1)


note the date!! Laughing



_________________
Slackware 12.2
Slax
Back to top
View user's profile Send private message
mmmna
. . . .


Joined: 21 Apr 2024
Posts: 7224

PostPosted: Sun Mar 30, 2024 3:01 am    Post subject: Reply with quote

Huh? Here is the end of my "man tar":

Code:
AUTHOR
       Written by John Gilmore and Jay Fenlason.

REPORTING BUGS
       Report bugs to <bug-tar@gnu.org>.

COPYRIGHT
       Copyright © 2024 Free Software Foundation, Inc.
       This is free software.  You may redistribute copies  of  it  under  the
       terms       of       the      GNU      General      Public      License
       <http://www.gnu.org/licenses/gpl.html>.  There is NO WARRANTY,  to  the
       extent permitted by law.

SEE ALSO
       The  full  documentation for tar is maintained as a Texinfo manual.  If
       the info and tar programs are properly installed at your site, the com‐
       mand

              info tar

       should give you access to the complete manual.

tar 1.16                         October 2024                           TAR(1)



_________________
-Kubuntu 10.04 LTS Beta2 on Celeron D desktop
-PCLinuxOS 2024 LXDE on EeePC 900A with Atom n270 (modded with 32G SATA drive and 2G ram).
Back to top
View user's profile Send private message
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Sun Mar 30, 2024 4:53 am    Post subject: Reply with quote

richard take a look at these articles in the sidux manual ....
rdiff Clik Wink
rsync Clik Wink
Your post reminded me that I wanted to back up my system, so I got to looking into that. Maybe one of these will help you as well.
HTHs



_________________
Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Back to top
View user's profile Send private message Visit poster's website
richard
Ultimate Member


Joined: 13 Apr 2024
Posts: 2730
Location: Kent, United Kingdom

PostPosted: Sun Mar 30, 2024 6:06 am    Post subject: Reply with quote

JP wrote:
richard take a look at these articles in the sidux manual ....
rdiff Clik Wink
rsync Clik Wink
Your post reminded me thate a look at them lat I wanted to back up my system, so I got to looking into that. Maybe one of these will help you as well.
HTHs


Thanks JP I'll have a look later today.



_________________
Windows Vista / Ubuntu 8.10
Back to top
View user's profile Send private message
Pet3M0ss
Advanced Member


Joined: 18 Sep 2024
Posts: 738
Location: NW corner of Montana (Libby)

PostPosted: Sun Mar 30, 2024 6:10 am    Post subject: Reply with quote

hmmm, mmmna, maybe Slackware needs to update a little?? Laughing

I see there is a package called "anacron" in the slackbuild.org site that claims to be a "periodic command scheduler" which may work for richard's periodic connection. Coupled with "dar", I would think one could "automate" the update of backup files. At least I will try to make it work for myself.



_________________
Slackware 12.2
Slax
Back to top
View user's profile Send private message
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Sun Mar 30, 2024 7:01 am    Post subject: Reply with quote

Pet3M0ss wrote:
I see there is a package called "anacron" in the slackbuild.org site that claims to be a "periodic command scheduler" which may work for richard's periodic connection. Coupled with "dar", I would think one could "automate" the update of backup files. At least I will try to make it work for myself.


I don't think he wanted to automate it, as he doesn't always have his USB hard drive hooked up to his lappy.

Also, did you notice what a mess the quote on richard's post did to my post Confused I wonder what happened there? I'd better look back and see if my quotes of others has done the same thing Confused Confused



_________________
Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Back to top
View user's profile Send private message Visit poster's website
Pet3M0ss
Advanced Member


Joined: 18 Sep 2024
Posts: 738
Location: NW corner of Montana (Libby)

PostPosted: Sun Mar 30, 2024 11:17 am    Post subject: Reply with quote

I dunno, JP, as Konqueror renders the two the same.



_________________
Slackware 12.2
Slax
Back to top
View user's profile Send private message
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Mon Mar 31, 2024 4:48 am    Post subject: Reply with quote

Must be SeaMonkey then ... I see
JP wrote:
Your post reminded me that I wanted to back up my system, so I got to looking into that. Maybe one of these will help you as well.
HTHs
richard quoting me wrote:
Your post reminded me thate a look at them lat I wanted to back up my system, so I got to looking into that. Maybe one of these will help you as well.
HTHs



_________________
Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Back to top
View user's profile Send private message Visit poster's website
Pet3M0ss
Advanced Member


Joined: 18 Sep 2024
Posts: 738
Location: NW corner of Montana (Libby)

PostPosted: Mon Mar 31, 2024 9:10 am    Post subject: Reply with quote

correction, JP, I was just reading too fast--- it is rendered differently.



_________________
Slackware 12.2
Slax
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » System Administration and Security 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
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse