• [^] # Re: sauvegardes

    Posté par (site web personnel) . En réponse au journal Idle Do, un script pour faire tourner des commandes quand l'ordinateur est inactif. Évalué à 1.

    Je l'utilise actuellement et cela marche.
    (tenant_key, user_key, pwd_key, password et password2 on été remplacés)

    mon fichier de conf rclone

    [OVH-Cloud]
    type = swift
    env_auth = false
    auth_version = 3
    auth = https://auth.cloud.ovh.net/v3/
    endpoint_type = public
    tenant_domain = default
    tenant = tenant_key
    domain = default
    user = user_key
    key = pwd_key
    region = SBG
    [OVH-Cloud-crypt]
    type = crypt
    remote = OVH-Cloud:mycloud-datas-sec
    filename_encryption = standard
    directory_name_encryption = true
    password = v6YwNNT55nnJ0C5l3gxutoMXN_gU
    password2 = Eud_hZcgdWhgmDwVXGxhz9yIg

    commande pour sauvegarder :

    rclone sync -v --fast-list --config="/etc/rclone.conf" --log-file="/tmp/rclone.txt" --contimeout=30s --transfers=2 /srv/hdd2t/mycloud-datas OVH-Cloud-crypt:mycloud-datas-sec

    pour restaurer :

    rclone sync -v --fast-list --config="/etc/rclone.conf" --log-file="/tmp/rclone.txt" --contimeout=30s --transfers=2 OVH-Cloud-crypt:mycloud-datas-sec /srv/hdd2t/mycloud-datas

    J'y suis arrivé en tâtonnant. Mais en gros on récupère un fichier rclone.conf depuis OHV ; puis à l'aide de "rclone config" on crée une entrée chiffrée qui as en "remote" l'entrée distante OVH.