Perintah scp file .tar

Discussion in 'Masalah Teknik dan Keamanan' started by shara nurul, 11 Jun 2015.

Thread Status:
Not open for further replies.
  1. shara nurul

    shara nurul Apprentice 1.0

    Messages:
    234
    Likes Received:
    1
    Trophy Points:
    18
    Dear DWH,

    Selamat sore ,

    jadi begini ada beberapa akun klien saya file nya cukup besar ,kemudian saya backup manual via console ssh dengan perintah /scripts/pkgacct username .

    Nah comandnya gimana ya biar scpnya langsung tidak satu satu ,intinya file yang ekstensinya .tar di lempar ke server backup dengan sekali perintah.

    Mohon pencerahannya.

    Salam,
    Shara Nurul
     
  2. pluto01

    pluto01 Hosting Guru Web Hosting

    Messages:
    3,653
    Likes Received:
    755
    Trophy Points:
    113
    Coba test :
    [root@123]# scp *.tar user-tujuan@IP-Tujuan:/direktori-tujuan/
     
  3. junior riau

    junior riau Hosting Guru Web Hosting

    Messages:
    3,227
    Likes Received:
    514
    Trophy Points:
    113
    hasil pkgacct .tar.gz lokasinya ada di /home/
    bisa pakai cara om @pluto01 atau cuma disebuktan *.tar.gz
    tambahan untuk custom port
    root@hostname:~# scp -P (portnumber) /home/*.tar.gz username@hosttujuan:/path/to/

    jika hasil cpmove di kumpulkan di folder
    root@hostname:~# scp -P (portnumber) -r /path/to/foldername/ username@hosttujuan:/path/to/
     
  4. mustafaramadhan

    mustafaramadhan Hosting Guru

    Messages:
    3,237
    Likes Received:
    857
    Trophy Points:
    113
    Ingat, sesuai spek, .tar, .tar.gz (atau .tgz) dan .gz adalah 'barang' berbeda.
     
    medanserv likes this.
  5. shara nurul

    shara nurul Apprentice 1.0

    Messages:
    234
    Likes Received:
    1
    Trophy Points:
    18
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...