Discover Packages
github.com/FObersteiner/gosyncit
cmd
package
Version:
v0.0.17
Opens a new window with list of versions in this module.
Published: Dec 27, 2023
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
Execute()
Mirror(src, dst, dry, clean, skipHidden)
SftpMir(local, remote, creds, reverse, dry, ignorehidden, clean)
Sync(src, dst, dry, skipHidden)
Types
Source Files
Documentation
Documentation
¶
Copyright © 2023 Florian Obersteiner <f.obersteiner@posteo.de>
License: see LICENSE in the root directory of the repo.
Copyright © 2023 Florian Obersteiner <f.obersteiner@posteo.de>
License: see LICENSE in the root directory of the repo.
Copyright © 2023 Florian Obersteiner <f.obersteiner@posteo.de>
License: see LICENSE in the root directory of the repo.
Copyright © 2023 Florian Obersteiner <f.obersteiner@posteo.de>
License: see LICENSE in the root directory of the repo.
func Execute()
func Mirror(src, dst string, dry, clean, skipHidden bool) error
func SftpMir(local, remote string, creds libsftp.Credentials, ...) error
func Sync(src, dst string, dry bool, skipHidden bool) error
Execute adds all child commands to the root command and sets flags appropriately.
This is called by main.main(). It only needs to happen once to the rootCmd.
Mirror mirrors directory 'src' to directory 'dst'.
SftpMir mirrors directory 'local' to 'remote' (SFTP) or vice versa (see 'reverse' flag).
Sync synchronizes directory 'src' with directory 'dst'.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.