Results 1 to 12 of 12
  1. #1
    Join Date
    Mar 2008
    Posts
    372

    committed big blunder :!!!! :((

    yes really committed a big blunder on my friend vps
    I didn't know copying index.htm file would copy everything on the older vps to new one,
    I just wanted to transfer index.htm file so I gave it via scp command and it copied every little bit of the files:
    Code:
    local-f.zshrc                                 100%   24     0.0KB/s   00:00
    back.mnrc                                     100% 1039     1.0KB/s   00:00
    warn-sound.conf                               100%    6     0.0KB/s   00:00
    cygbash                                       100%   77     0.1KB/s   00:00
    Rules.make                                    100%   12     0.0KB/s   00:00
    bashrc                                        100%  876     0.9KB/s   00:00
    f.bashrc                                      100% 2919     2.9KB/s   00:00
    zshrc                                         100% 5670     5.5KB/s   00:00
    .zshrc                                        100%  549     0.5KB/s   00:00
    LYMainLoop.c                                  100%  209KB 209.0KB/s   00:00
    lynx_cfg.h                                    100%   13KB  12.9KB/s   00:00
    Repository                                    100%   13     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%   98     0.1KB/s   00:00
    urlextract.c                                  100%   11KB  11.5KB/s   00:00
    urlview.c                                     100%   11KB  11.4KB/s   00:00
    Repository                                    100%   12     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%   97     0.1KB/s   00:00
    move.c                                        100%   23KB  22.5KB/s   00:00
    menus.c                                       100%   84KB  83.6KB/s   00:01
    Repository                                    100%   18     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%   89     0.1KB/s   00:00
    fvwm.patch                                    100% 1355     1.3KB/s   00:00
    Repository                                    100%   14     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%   57     0.1KB/s   00:00
    curs_main.c                                   100%   41KB  40.6KB/s   00:00
    Repository                                    100%   17     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%   50     0.1KB/s   00:01
    mutt                                          100%  437KB 436.6KB/s   00:00
    Repository                                    100%   13     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%   51     0.1KB/s   00:00
    Repository                                    100%    8     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%   44     0.0KB/s   00:00
    linbash                                       100%   89     0.1KB/s   00:00
    winbash                                       100%    0     0.0KB/s   00:00
    lesskey                                       100%  114     0.1KB/s   00:00
    dot.xkeymacs                                  100% 3701     3.6KB/s   00:00
    issue                                         100%   37     0.0KB/s   00:00
    othermboxes.mll                               100%   91     0.1KB/s   00:00
    gtkrc                                         100% 8085     7.9KB/s   00:00
    printcap                                      100%  444     0.4KB/s   00:00
    flagup                                        100% 1880     1.8KB/s   00:00
    sendmail.mc                                   100% 1966     1.9KB/s   00:00
    sconf-tar                                     100%  113     0.1KB/s   00:00
    ircd.conf                                     100% 8624     8.4KB/s   00:00
    fetchmailrc_template                          100%  211     0.2KB/s   00:00
    colors.h                                      100% 5390     5.3KB/s   00:00
    mconf.tr                                      100%    6     0.0KB/s   00:00
    kerndebugvm                                   100%  109     0.1KB/s   00:00
    priv.tr                                       100%   33     0.0KB/s   00:00
    folderhooks_template                          100%  397     0.4KB/s   00:00
    fstab                                         100%  880     0.9KB/s   00:00
    inittab                                       100% 1666     1.6KB/s   00:00
    otherprocmailrc                               100%  233     0.2KB/s   00:00
    proc-forums_template                          100%  274     0.3KB/s   00:00
    clearexec                                     100%  239     0.2KB/s   00:00
    modules.sb_pci                                100%  232     0.2KB/s   00:01
    lxlabs.repo                                   100%  395     0.4KB/s   00:00
    dconf-tar                                     100%  146     0.1KB/s   00:00
    resolv.conf                                   100%   46     0.0KB/s   00:00
    hybserv.conf                                  100% 4457     4.4KB/s   00:00
    zshenv                                        100%   20     0.0KB/s   00:00
    ligesh.reg                                    100%   61KB  60.7KB/s   00:00
    woman                                         100% 4778     4.7KB/s   00:00
    chords.txt                                    100%   74KB  74.0KB/s   00:01
    escherknot                                    100%   33KB  33.5KB/s   00:00
    msmtprc_template                              100%  144     0.1KB/s   00:00
    first.tr                                      100%   51     0.1KB/s   00:00
    hosts                                         100%  446     0.4KB/s   00:00
    modules.sb_isa                                100%  162     0.2KB/s   00:00
    tiny                                          100%  198     0.2KB/s   00:00
    localprog.repo                                100%  389     0.4KB/s   00:00
    nconf-tar                                     100% 2153     2.1KB/s   00:00
    ircrc                                         100%   27     0.0KB/s   00:00
    php.ini                                       100%   45KB  44.7KB/s   00:00
    Repository                                    100%    9     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%  870     0.9KB/s   00:00
    bind.zsh                                      100%  520     0.5KB/s   00:00
    commands.emacs                                100% 1172     1.1KB/s   00:00
    pfixed                                        100%    0     0.0KB/s   00:00
    ampleave.vim                                  100% 1413     1.4KB/s   00:00
    vbfnc.vim                                     100% 6894     6.7KB/s   00:00
    html_syntax.txt                               100%  113     0.1KB/s   00:00
    vwin.vim                                      100%  487     0.5KB/s   00:00
    old.chtml.vim                                 100%   11KB  11.2KB/s   00:01
    vhtml.vim                                     100% 1955     1.9KB/s   00:00
    closetag.vim                                  100%   12KB  11.5KB/s   00:00
    chtml.vim                                     100%   18KB  17.7KB/s   00:00
    vafnc.vim                                     100%   32KB  32.2KB/s   00:00
    search-compl.vim                              100% 1744     1.7KB/s   00:00
    vaucmd.vim                                    100% 7045     6.9KB/s   00:00
    vfunc.vim                                     100%   48KB  47.9KB/s   00:01
    vim.vim                                       100%   28     0.0KB/s   00:00
    art.vim                                       100%  174     0.2KB/s   00:00
    html.vim                                      100%  224     0.2KB/s   00:00
    asm.vim                                       100%  551     0.5KB/s   00:00
    prf.vim                                       100%  253     0.3KB/s   00:00
    php.vim                                       100%  938     0.9KB/s   00:00
    ctr.vim                                       100%   48     0.1KB/s   00:00
    CVSAnnotate.vim                               100%  860     0.8KB/s   00:00
    mail.vim                                      100%  244     0.2KB/s   00:00
    c.vim                                         100%  575     0.6KB/s   00:00
    make.vim                                      100%   59     0.1KB/s   00:00
    gdb.vim                                       100%   32     0.0KB/s   00:00
    Repository                                    100%   15     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%  439     0.4KB/s   00:01
    vfmap.vim                                     100% 1470     1.4KB/s   00:00
    SuperTab.vim                                  100% 2057     2.0KB/s   00:00
    multi-value.vim                               100%   62KB  61.5KB/s   00:00
    hskeleton.h                                   100%   58     0.1KB/s   00:00
    vtmp.vim                                      100% 1807     1.8KB/s   00:00
    cdict                                         100%   28KB  27.7KB/s   00:00
    vextr.vim                                     100% 1916     1.9KB/s   00:00
    spellcheck.vim                                100% 3033     3.0KB/s   00:00
    vpager.vim                                    100%   96     0.1KB/s   00:00
    vhelp.vim                                     100%  326     0.3KB/s   00:00
    vswitchb.vim                                  100% 4551     4.4KB/s   00:00
    vpres.vim                                     100%   95     0.1KB/s   00:00
    cskeleton.cc                                  100%  318     0.3KB/s   00:00
    ide.vim                                       100%   17KB  16.8KB/s   00:00
    vimrc.vim                                     100% 9487     9.3KB/s   00:00
    taglist.vim                                   100%   90KB  90.2KB/s   00:00
    cvscommand.vim                                100%   36KB  35.9KB/s   00:00
    info.vim                                      100%   12KB  11.6KB/s   00:00
    cmdline-complete.vim                          100% 1717     1.7KB/s   00:00
    vmaps.vim                                     100% 3886     3.8KB/s   00:00
    DrawIt.vim                                    100%   35KB  34.8KB/s   00:00
    info.vim.back                                 100%   11KB  10.7KB/s   00:00
    vmmap.vim                                     100% 3114     3.0KB/s   00:00
    vcols.vim                                     100% 3192     3.1KB/s   00:00
    vcpp.vim                                      100%  825     0.8KB/s   00:00
    vreg.vim                                      100% 3626     3.5KB/s   00:00
    vartab.vim                                    100%   23KB  23.2KB/s   00:01
    php-indent.vim                                100%   13KB  13.2KB/s   00:00
    vcyg.vim                                      100%   14     0.0KB/s   00:00
    Repository                                    100%   11     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%   47     0.1KB/s   00:00
    vhtmlab.vim                                   100% 3690     3.6KB/s   00:01
    tags                                          100%   54KB  53.6KB/s   00:00
    vzmap.vim                                     100%  536     0.5KB/s   00:00
    vmeta.vim                                     100% 1186     1.2KB/s   00:00
    vsmap.vim                                     100% 3938     3.9KB/s   00:00
    Repository                                    100%    8     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100% 1328     1.3KB/s   00:01
    mtoolsrc                                      100%  453     0.4KB/s   00:00
    f.zshrc                                       100% 3560     3.5KB/s   00:00
    .emacs                                        100%   36     0.0KB/s   00:00
    keys                                          100%   16KB  16.0KB/s   00:00
    zshenv                                        100%   20     0.0KB/s   00:00
    mnrc                                          100% 4485     4.4KB/s   00:00
    gnuplot                                       100%   84     0.1KB/s   00:00
    id-lang.map                                   100% 1631     1.6KB/s   00:00
    nsword                                        100%   86     0.1KB/s   00:00
    dialogrc                                      100% 2281     2.2KB/s   00:00
    inputrc                                       100% 1123     1.1KB/s   00:00
    gdb                                           100%   91     0.1KB/s   00:00
    bash                                          100%  533     0.5KB/s   00:00
    bashcor                                       100%  468     0.5KB/s   00:00
    Repository                                    100%   11     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%  171     0.2KB/s   00:00
    cygbash                                       100%  223     0.2KB/s   00:00
    bsdbash                                       100%  232     0.2KB/s   00:00
    sunbash                                       100%  306     0.3KB/s   00:00
    Repository                                    100%    7     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%  134     0.1KB/s   00:01
    xresource                                     100% 4136     4.0KB/s   00:00
    gtkrc                                         100%   52     0.1KB/s   00:00
    vnc.fvwm2rc.m4                                100%  245     0.2KB/s   00:00
    back.xresource                                100% 4768     4.7KB/s   00:00
    8.xresource                                   100%  187     0.2KB/s   00:00
    warn-sound.conf                               100%   67     0.1KB/s   00:00
    extra.xresource                               100%  299     0.3KB/s   00:00
    back.8.xd                                     100% 2352     2.3KB/s   00:00
    xkeys                                         100% 2841     2.8KB/s   00:01
    gtkrc                                         100% 2591     2.5KB/s   00:00
    local.xresource                               100%   26     0.0KB/s   00:00
    xinitrc                                       100%  832     0.8KB/s   00:00
    laptop.xresource                              100%  434     0.4KB/s   00:01
    11.xresource                                  100%  299     0.3KB/s   00:00
    fvwm2rc.m4                                    100%   69KB  69.3KB/s   00:01
    Repository                                    100%   10     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:01
    Tag                                           100%    5     0.0KB/s   00:00
    Entries                                       100%  160     0.2KB/s   00:01
    .bash_profile                                 100%  508     0.5KB/s   00:00
    mailcap                                       100%   16KB  16.1KB/s   00:01
    linkscrpt.sh                                  100%  129     0.1KB/s   00:00
    lynxrc                                        100%   13KB  13.5KB/s   00:00
    urlview                                       100%   65     0.1KB/s   00:00
    kderc                                         100%  165     0.2KB/s   00:00
    gdbinit                                       100% 4506     4.4KB/s   00:00
    lynx-keymaps                                  100% 5238     5.1KB/s   00:00
    emacs.procmailrc                              100% 1403     1.4KB/s   00:00
    old.procmailrc                                100%  781     0.8KB/s   00:01
    procmail.old                                  100%  200     0.2KB/s   00:00
    Repository                                    100%    9     0.0KB/s   00:00
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%  475     0.5KB/s   00:00
    Makefile                                      100%  221     0.2KB/s   00:00
    Repository                                    100%    4     0.0KB/s   00:01
    Root                                          100%   40     0.0KB/s   00:00
    Entries                                       100%  975     1.0KB/s   00:00
    damn, needed to delete the directory and re-upload the files in there
    its been really a terrible day for me in the work

    even index.zip copying resulted in same way damn,.... don't know what to say
    Last edited by koolnhot; 07-01-2009 at 10:59 AM.

  2. #2
    Join Date
    Dec 2003
    Location
    New Zealand
    Posts
    1,265
    So whats the issue?

    Confusing...

  3. #3
    Join Date
    Jun 2009
    Location
    Kochi,India
    Posts
    179
    Could you tell me how we can help you?
    Ezeelogin -
    The ultimate multiple server administration software.
    *Parallel shell *rm -rf protection *SSH logging*automated password changes*encrypted storage*
    AdMod.com -Delivering innovative web hosting solutions

  4. #4
    Join Date
    Aug 2007
    Location
    Berlin, Germany
    Posts
    183
    i think what he's trying to say is, when he copies one file from the older VPS to the new VPS

    it copies every single file from the old VPS to the NEW VPS

    Correct me if im wrong?

    And he only wants to copy one file it seems. however it's not clear

    please confirm

  5. #5
    Join Date
    May 2009
    Location
    SLASH ROOT
    Posts
    867
    I think his copy resulted in over-writing the files. Can you tell what help you are looking for?
    █ WebHostRepo.com
    █ Linux | Windows
    | VPS | Cloud
    █ Outsourced Technical Support since 2009
    █ sales@webhostrepo.com

  6. #6
    Join Date
    Apr 2007
    Location
    United Kingdom
    Posts
    1,861
    What command are you using to transfer the files? Seems like that's where you're going wrong.

  7. #7
    Join Date
    Mar 2008
    Posts
    372
    actually I just wanted to say tht copying index.htm or index.zip file over the server copies every **** on the older vps to the newer one, the files such as entry logs, repository and every other .... gets copied to new server..
    the only way I could solve it was delete the directory and re-add domain , I had learnt lesson not to move index.htm or index.zip files over servers
    I had used this command:
    Code:
    scp -rp /path/to/source root@destination_IP:/path/to/destination

  8. #8
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,849
    Quote Originally Posted by koolnhot View Post
    scp -rp
    It's nothing to do with the file you copied. The r flag commonly means "recursive", ie. apply the command to the directory specified and everything underneath it.

    In future you might want to try using man (eg "man scp") before running any command you don't understand - it should give you an indication of what you're about to do...
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  9. #9
    Join Date
    Mar 2008
    Posts
    372
    foobic - thanks for the suggestion and info, but when I tried to move gzip files using the same above command with some other file name they moved successfully, they didn't copy everything underneath the directory but just moved the specified file only,

  10. #10
    Join Date
    May 2008
    Posts
    43
    koolnhut... Did you actually go read a man page for SCP? Whatever may have happened with your gzip copy (maybe you specified the actual file name?), -r means recursive, just like foobic pointed out: http://www.eos.ncsu.edu/remoteaccess/man/scp.html

    You don't need the -p, either... just do:
    scp filename user@hostname:/target/directory

    Best Regards,
    Dan Hildebrandt, Developer / Support, WebGroup Media LLC. - http://twitter.com/cerb5
    Cerberus Helpdesk 5.x is a CRM toolkit. Remember anything about anybody, swiftly reply to a flood of e-mail,
    capture feedback organically, track time, flag opportunities, share tasks, and more. http://www.cerberusweb.com/

  11. #11
    Join Date
    Nov 2001
    Location
    Vancouver
    Posts
    2,422
    Quote Originally Posted by koolnhot View Post
    I didn't know copying index.htm file would copy everything on the older vps to new one
    No, it won't.

    I just wanted to transfer index.htm file so I gave it via scp command
    Simple enough:

    Code:
    scp /path/to/index.htm foo@some.remote.machine:/path/to/where/you/want/it/.
    and it copied every little bit of the files |long list of files snipped|
    "it" didn't do anything that you did not tell it to do.

    There is nothing wrong with the scp software you used; it is the way *you* used it. Do not blame the tool. Use this as a learning experience; since you are obviously very new to using command line tools, you'd be well advised to set up a test account somewhere to practice with.
    “Even those who arrange and design shrubberies are under
    considerable economic stress at this period in history.”

  12. #12
    Join Date
    Mar 2008
    Posts
    372
    thanks for the info and suggestions watkins and hildy
    I learned tht I should never use -rp un-necessarily in future, will keep tht in mind,
    though the way my problem solved was different, I downloaded the file from old server and uploaded it in the new server, leaving no chance for mistakes to repeat again

Similar Threads

  1. Paysystems blunder
    By bear in forum Ecommerce Hosting & Discussion
    Replies: 6
    Last Post: 02-15-2004, 08:43 AM
  2. A blunder on my part :(
    By Derrick in forum Running a Web Hosting Business
    Replies: 16
    Last Post: 02-06-2004, 12:51 AM
  3. Tech TV Blunder
    By Andyc in forum Web Hosting Lounge
    Replies: 26
    Last Post: 01-17-2003, 08:08 PM
  4. Microsoft Blunder
    By TheGAME1264 in forum Web Hosting Lounge
    Replies: 16
    Last Post: 01-16-2003, 07:26 AM
  5. The BIGGEST blunder in my life!!!!!
    By linuxnewbie in forum Hosting Security and Technology
    Replies: 13
    Last Post: 07-04-2002, 02:39 AM

Posting Permissions

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