Results 1 to 7 of 7

Thread: copy my files in daily basis

  1. #1

    Default copy my files in daily basis

    Dear all,
    inside my Linux I am using virtual box to launch windows xp. I have one shared folder between the operating systems so as to share my files

    As I can not trust virtual box and windows xp... can you suggest me an easy way to take daily backups of one of the folders I have inside that shared folder?

    The files are mostly html files so the file size is not so much of a problem (at least I think!) . How can I take daily backups so to not lose something? Regards
    Alex

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,454

    Default Re: copy my files in daily basis

    The easy ways normally involve having permanent access to the backup media in which case setting up a cron job to do the back up at a specific time will work. Otherwise, if you are using media like a USB key, a USB drive or a CD/DVD you can normally write a script (or save the details if you use K3b) and execute that.

  3. #3

    Default Re: copy my files in daily basis

    Quote Originally Posted by john_hudson View Post
    The easy ways normally involve having permanent access to the backup media in which case setting up a cron job to do the back up at a specific time will work. Otherwise, if you are using media like a USB key, a USB drive or a CD/DVD you can normally write a script (or save the details if you use K3b) and execute that.
    Hello again. Do you know if there is any way to copy exact the contents of one folder to another place?Sometimes cp -R * might fail.

    Best REgards
    Alex

  4. #4
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,454

    Default Re: copy my files in daily basis

    See man cp. I suspect you would be better using cp -a the first time and cp -u thereafter. Or, if you are using a USB key, dd might be better for you.

  5. #5
    Join Date
    Dec 2010
    Location
    Ankara, Turkey
    Posts
    250

    Default Re: copy my files in daily basis

    As far as I know, dd copies exactly what is offered, meaning it copies file system types (ext, fat etc) and boot sectors if available and stuff. Therefore using dd might cause problems. I am not sure if it offers only to copy files, maybe it does.
    The only problem with troubleshooting is that sometimes trouble shoots back.
    My blog (in Turkish): http://yasar.serveblog.net

  6. #6

    Default Re: copy my files in daily basis

    Okay I think I have to explain you my scenario. I have a folder where I am updating a web page I have . I would like to have a process that runs every one hour and takes the files from my web development page and copies/replacing the old files I have to the web server's directory.

    Could you please help me which program to use to do that?

    Regards
    Alex

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: copy my files in daily basis

    On 2011-05-23 14:06, alaios wrote:
    > Could you please help me which program to use to do that?


    rsync

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •