LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2014, 02:18 AM   #1
Nato85
LQ Newbie
 
Registered: Feb 2014
Posts: 13

Rep: Reputation: Disabled
Linux Newbie here


Hi Guys

Finally made the jump from Windows 8 to Linux Mint 17.

So far, LOVING IT! Always had an interest in Linux, and I can make it work.

Got a few questions.

I was running a script on Windows before I moved to Linux, just an xcopy script. Pretty much what it was doing is just say once a week, it would copy the entire contents of one hard drive to another. What is also did was only copy new files instead of doing a full copy once a week.

1) What would I have to set up in Linux (rememeber, only a newbie) in order to have a script that automatically runs once a week and copies only new files.

I liked in Windows 8 how I was able to cycle different wallpaper on each monitor on a time interval

2) Is there anything like that in Linux, Id accept if it couldnt show me different wallpapers on the screens that I have, but I would like it to cycle if i could?

Last edited by Nato85; 06-23-2014 at 02:31 AM.
 
Old 06-23-2014, 02:47 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hi Nato
Quote:
and I can make it work.
With that attitude, I tend to agree.
Quote:
have a script that automatically runs once a week and copies only new files.
You probably have a dozen options, how deep into the weeds to you want to get?
Do you want an app that does it on a schedule?
Do you want to write an app that does it on a schedule?
Are you looking at it as an opportunity to learn or as a mission critical function that has to be brought on line immediately?
Quote:
I would like it to cycle if i could?
That comes down to what window manager you're using and does it support live wallpaper. Let us know which one you're using and we'll show you how to figure out what it's capabilities are and how you can use them.
Quote:
Is there a way of getting that PST file imported
The first question is, are you using an imap or pop mail server? If you're using imap, you probably don't need the pst file other than for archived mail, all mail in imap, even special folders, are stored on the server so if you connect any mail client to the server, you should get the same mail (other than mail that's been archived).
To answer your question more directly, PSTs' are proprietary formats so to import their contents into a non-Microsoft mail client, you have to export them to a non-proprietary format (eml, csv, xml, etc), This is a thunderbird import tool that lists the formats it can import, just match that to an export format outlook supports (csv for example) and you should be in business.

Last edited by dijetlo; 06-24-2014 at 09:20 AM. Reason: because LDAP is not IMAP
 
Old 06-23-2014, 04:16 AM   #3
Nato85
LQ Newbie
 
Registered: Feb 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
How would I find out what Window Manager I am using.

I am using Linux Mint 17 with Cinnamon. I am unsure if that is the info you require



Will test out backup solution tonight, and PST enquiry has been sorted now
 
Old 06-23-2014, 09:02 AM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
A little research reveals Cinnamon is a derivative of Gnome, and the default desktop environment (window manager) for Mint. You're looking for something called "Cinnamon Control Panel", where you want something like "appearance" or "desktop background", perhaps "wallpaper"?
 
Old 06-23-2014, 10:06 AM   #5
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,144

Rep: Reputation: 235Reputation: 235Reputation: 235
You might want to investigate rsync.
It will copy new files, reliably not touch previously copied files and can delete removed files (if that is what you want).
The downside is that it is rather slow on copying large files (5GB and upwards).
It has many options...

Review cron to automatically run a script at a prescribed time or date etc.
The PC needs to be switched on though!!!
 
1 members found this post helpful.
Old 06-23-2014, 09:34 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,255
Blog Entries: 16

Rep: Reputation: 3121Reputation: 3121Reputation: 3121Reputation: 3121Reputation: 3121Reputation: 3121Reputation: 3121Reputation: 3121Reputation: 3121Reputation: 3121Reputation: 3121
rsync.

Here's the command I use:

Code:
rsync -ar /home/[username] [username]@[ip address]:[target directory]
There's good GUI frontend for rsync called BackinTime. You can learn more about it at Sourcetrunk.

It's possible to set it up as a cron job (that is, a regularly scheduled job that runs in the background), but it will require learning about ssh, which is one of the most useful Linux commands in a networked environment. The link covers how to set up a cron job. ("cron" is derived from the word "chronometer")

Last edited by frankbell; 06-23-2014 at 09:36 PM.
 
Old 06-24-2014, 02:54 AM   #7
Nato85
LQ Newbie
 
Registered: Feb 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
I dont mind using Rsync but lately for some reason I havent managed to get it working

What i would like to do is this

/dev/sda1 is my main drive
/dev/sdc1 is my backup drive

once a week, i would like everything on sda1 be copied to sdc1. But only have it to copy new items, not everything?

I am currently having a look at back in time and it is saying that it is taking a snapshot, I am assuming it is finding what is on the drive at the moment and comparing it to what is on the backup drive.
 
Old 06-24-2014, 05:08 AM   #8
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,144

Rep: Reputation: 235Reputation: 235Reputation: 235
You can only copy data files with rsync - not clone disks.
For example you can do a rsync on the entire contents of /home (possibly excluding unwanted directories).

rsync will not bother to copy unchanged files.
It does compare source and target to do this.
BTW source and target can be on different machines.

There is no need to backup the system directories such as /usr since these can be quickly re-installed.
 
Old 06-24-2014, 05:18 AM   #9
Nato85
LQ Newbie
 
Registered: Feb 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Yeah I have no interest in backing up files on the Linux drive. Linux is currently installed on a 120Gb SSD (dev/sdb1)

sda1 contains every file thats of importance to me, it is mounted to media/<username>/<name of drive> you said i cant clone the disks, can i copy the contents of that to the dev/sdc1 hard drive thats mounted also in media/<username>/<name of drive>?
 
Old 06-24-2014, 05:24 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,362

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
As he said, rsync copies at the file level. A 'clone' is usually taken to mean copying at the disk block level; not what you need in this case anyway.

rsync is a good tool, but for just copying from one disk to another in the same machine its probably overkill. The copy cmd (cp) would probably be enough, especially if you take advantage of the cron service (as noted above) and run it overnight.

cron http://www.adminschoice.com/crontab-quick-reference
 
Old 06-24-2014, 08:47 AM   #11
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,144

Rep: Reputation: 235Reputation: 235Reputation: 235
I like to use it because rsync can optionally delete files from the target that have been renamed/moved/deleted in the source.
 
Old 06-24-2014, 09:00 AM   #12
gor0
Member
 
Registered: Jun 2014
Distribution: quad BOOT!
Posts: 549

Rep: Reputation: 64
Quote:
Originally Posted by Nato85 View Post
Finally made the jump from win$UCK$ 8 to Mint 17
Congrats !!!

The best thing you can have done!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off




All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration