SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been running Slackware on my Thinkpad since version 10 of Slackware came out and I am looking for the best way to backup my important information. I have done some googling (or googleing?) and I like the idea of just using Tar, but I am confused as to witch parameters to use. Can someone give me a little help. I would like to back up to an SMB share on my home network. Also is this the best route to take or would you recommend a better solution.
An idea, make an +x script and drop it in your /etc/cron.daily. mkdir /var/backup. /var is where this type of things should go if kept locally.
My laptop hostname is mustang.
tar cvzf $backuplocation$backupname.tar.gz $backupwhat --exclude=$backupexclude
# This is up to you to add.
# if you are always connected to your samba share.
mv $backuplocation$backupname.tar.gz /mnt/samba
# or mount the samba share and move/copy whenever you want to.
My mirrored server stores all backups. I have a script to remove backups > 2-weeks.
Thanks for the assistance. I will give it a try when I get home. One more question because Gnome is confusing me -
I am using Gnome as my desktop and I use it to view my windows network and transfer files that way. What I cant find is where this is mounted (looked in /mnt ). Or is this mounted?
keep in mind the op is wanting to look at a Windows box. The smb.conf sets up the server side, (*nix box). The samba client is usually built in the kernel and the samba server isn't needed to look at Windows.
rsync -a --progress --exclude=*.iso /home/dennisk/ /mnt/usbkey/dennisk
is what I use to backup a copy of my home directory on my laptop to an external USB hard drive. The "exclude" option skips the 10-15Gb of Linux distros I keep hany to burn copies for our monthly InstallFest.
You can add the "--delete" option if you want files that are deleted from the home directory to also be deleted from the backup.
Even though my laptop doesn't have the faster USB 2.0 ports this works quite well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.