File(s) Synchronize from Remote System in RHEL/CentOS

Rsync (Remote Sync) is a most commonly used command for copying and synchronizing files and directories remotely as well as locally in Linux/Unix systems. With the help of rsync command you can copy and synchronize your data remotely and locally across directories, across disks and networks, perform data backups and mirroring between two Linux machines.

Some advantages and features of Rsync command

  • It efficiently copies and sync files to or from a remote system.
  • Supports copying links, devices, owners, groups and permissions.
  • It’s faster than scp (Secure Copy) because rsync uses remote-update protocol which allows to transfer just the differences between two sets of files. First time, it copies the whole content of a file or a directory from source to destination but from next time, it copies only the changed blocks and bytes to the destination.
  • Rsync consumes less bandwidth as it uses compression and decompression method while sending and receiving data both ends.

Basic syntax of rsync command

# rsync options source destination

Some common options used with rsync commands

  1. -v : verbose
  2. -r : copies data recursively (but don’t preserve timestamps and permission while transferring data
  3. -a : archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file permissions, user & group ownerships and timestamps
  4. -z : compress file data
  5. -h : human-readable, output numbers in a human-readable format

Installing rsync in RHEL/CentOS

# yum install rsync

Copy/Sync a File on a Local Computer
This following command will sync a single file on a local machine from one location to another location. Here in this example, a file name backup.tar needs to be copied or synced to /tmp/backups/ folder.

# rsync -z -v -h backup.tar /tmp/backups/

In above example, you can see that if the destination is not already exists rsync will create a directory automatically for destination.

Copy/Sync a Directory on Local Computer
The following command will transfer or sync all the files of from one directory to a different directory in the same machine. Here in this example, /root/rpms contains some rpm package files and you want that directory to be copied inside /tmp/backups/ folder.

# rsync -a -v -z -h /root/rpms /tmp/backups/

Copy a Directory from Local Server to a Remote Server
This command will sync a directory from a local machine to a remote machine. For example: There is a folder in your local computer “dir” which contains some RPM packages and you want that local directory’s content send to a remote server, you can use following command.

# rsync -a -v -z dir/ root@192.168.0.101:/home/
root@192.168.0.101's password:

Copy/Sync a Remote Directory to a Local Machine
This command will help you sync a remote directory to a local directory. Here in this example, a directory /home/user/dir which is on a remote server is being copied in your local computer in /tmp/dir.

#rsync -avzh root@192.168.0.100:/home/user/dir /tmp/dir
root@192.168.0.100's password:

नेपाल सरकारको प्रमुख निकाय प्रधानमन्त्री तथा मन्त्रिपरिषद्को कार्यालयका कर्मचारीहरु सचिव एवं सह सचिवहरु मात्रै ??

नेपाल सरकारको प्रमुख निकाय प्रधानमन्त्री तथा मन्त्रिपरिषद्को कार्यालयको वेबसाइट अनुसार उक्त कार्यालयमा काम गर्ने कर्मचारीहरुको विवरणमा सचिव तथा सह सचिवहरु मात्रै नामावली रहेको पाइएको छ । Continue reading “नेपाल सरकारको प्रमुख निकाय प्रधानमन्त्री तथा मन्त्रिपरिषद्को कार्यालयका कर्मचारीहरु सचिव एवं सह सचिवहरु मात्रै ??”

[FIXED] नेपाल सरकारको एउटा अर्को निकायको वेबसाइटको दुर्दशा

[UPDATE 2014-07-18] – This issue has been fixed.

नेपाल सरकारका मातहत निकायका वेबसाइटहरुको दुर्दशा शिर्षकमा केही दिन अघि नै एउटा लेख प्रकाशित भै सकेको छ । यसै क्रममा नेपाल सरकारको एउटा अर्को निकायको वेबसाइटको दुर्दशा यहाँ प्रस्तुत गरिएको छ, त्यो निकाय हो संस्कृति, पर्यटन तथा नागरिक उड्डयन मन्त्रालयContinue reading “[FIXED] नेपाल सरकारको एउटा अर्को निकायको वेबसाइटको दुर्दशा”

नेपाल सरकारका मातहत निकायका वेबसाइटहरुको दुर्दशा

नेपाल सरकारले आफ्ना काम कारवाहीहरु सम्पादन गर्दा कम कागजको प्रयोग गरेर गर्ने एउटा सुखद शुरुवात प्रधानमन्त्री तथा मन्त्रिपरिषद्को कार्यालयबाट गरेको छ । यसै गरी सरकारी निकायहरुले सेवाग्राहीहरुलाई आफ्नो कार्यालयको परिचय तथा कार्यालय मार्फत प्रवाह हुने सेवाहरु तथा अन्य कुराहरुको जानकारी प्रदान गर्न वेबसाइटहरु समेत सञ्चालनमा ल्याएका छन् । Continue reading “नेपाल सरकारका मातहत निकायका वेबसाइटहरुको दुर्दशा”

Fedora 19 (“Schrödinger’s Cat”) Released

fedoraLogo

F19 release announcement

The Fedora Project is delighted to announce the release of Fedora 19 (“Schrödinger’s Cat”). Open the box and take a look for yourself!

Fedora is a leading-edge, free and open source operating system that continues to deliver innovative features to many users, with a new release about every six months. Continue reading “Fedora 19 (“Schrödinger’s Cat”) Released”

Viber, published Windows and Mac desktop version

Viber Software as a powerful service connection between Viber worldwide users has made popularity. This service aims to compete with the powerful Skype software, and even is better in some parts of its powerful rival acts.
Unlike Skype, the service is always on standby.There is no need to run the application by the user . It is cost-effective
But After the spectacular situation, Mobile version
Viber currently begin a new game And has been released Windows and Mac desktop version of the software That just The Skype application directly targeted
Since the software on the platform, ios, Android, Windows, BlackBerry, Symbian and Bada was applicable And Now with added desktop versions of Windows and Mac,This will cover the complete software world collection And will Become one of the most important communication tool among Internet users

New Features Desktop version of this software

  • Ultra High Quality HD Audio link
  • video connection
  • Send Free Text and Picture (Excellent replacing to SMS and MMS)
  • Group Conference
  • No need to register, invites and define password
  • Sync up the audience and messages between mobile and desktop versions
  • Transfer calls between devices
  • Through this Address you can proceed to download the desktop version of Viber

Home page

वेवसाइट ह्याक हुनबाट बच्ने केही उपायहरु

हालै नेपाल सरकारका केही निकायहरुको वेबसाइट ह्याक भएका खबर बाहिर आएका छन् । यस्ता साइटहरु ह्याक हुनबाट बनाउन केही उपयोगी सल्लाहहरु तल दिएका छन् ।

Continue reading “वेवसाइट ह्याक हुनबाट बच्ने केही उपायहरु”