persistence/pgdump.go
func NewPgRemoteDumpWithPath(port int, database, username, password string, sshCfg command.SshConfig, remoteArchivePath string) (*PgDump, error) {
	remoteExecuter, err := command.NewRemoteExecutor(sshCfg)
	remoteOps := osutils.NewRemoteOperations(sshCfg)
	if len(remoteArchivePath) > 0 {
		remoteOps.SetPath(remoteArchivePath)
	}
	pgDump := NewPgDump("localhost", port, database, username, password)
	pgDump.sshCfg = sshCfg
	pgDump.Caller = remoteExecuter
	pgDump.RemoteOps = remoteOps

	return pgDump, err
}
func NewPgRemoteDumpWithPath(port int, database, username, password string, sshCfg command.SshConfig, remoteArchivePath string) (*PgDump, error) {
	remoteExecuter, err := command.NewRemoteExecutor(sshCfg)
	remoteOps := osutils.NewRemoteOperations(sshCfg)
	if len(remoteArchivePath) > 0 {
		remoteOps.SetPath(remoteArchivePath)
	}
	pgDump := NewPgDump("localhost", port, database, username, password)
	pgDump.sshCfg = sshCfg
	pgDump.Caller = remoteExecuter
	pgDump.RemoteOps = remoteOps

	return pgDump, err
}
//NewPgRemoteDumpWithPath -